From: Olaf Hering Date: Wed, 2 Oct 2019 17:05:36 +0000 (+0200) Subject: stubdom/vtpm: include stdio.h for declaration of printf X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1296 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=55ab292c42db41b05cfdba012680bf1e0ea02f7a;p=xen.git stubdom/vtpm: include stdio.h for declaration of printf The function read_vtpmblk uses printf(3), but stdio.h is not included in this file. This results in a warning from gcc-7: vtpmblk.c: In function 'read_vtpmblk': vtpmblk.c:322:7: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf("Expected: "); vtpmblk.c:322:7: warning: incompatible implicit declaration of built-in function 'printf' vtpmblk.c:322:7: note: include '' or provide a declaration of 'printf' Signed-off-by: Olaf Hering Acked-by: Daniel De Graaf Reviewed-by: Samuel Thibault Release-acked-by: Juergen Gross --- diff --git a/stubdom/vtpm/vtpmblk.c b/stubdom/vtpm/vtpmblk.c index fe529ab5ac..681f0c01b6 100644 --- a/stubdom/vtpm/vtpmblk.c +++ b/stubdom/vtpm/vtpmblk.c @@ -20,6 +20,7 @@ #include #include #include +#include /*Encryption key and block sizes */ #define BLKSZ 16