From: "Luis R. Rodriguez" <mcg...@suse.com>

Using gcc5 we get the following warning:

vtpmblk.c:322:7: warning: implicit declaration of function ‘printf’ 
[-Wimplicit-function-declaration]
vtpmblk.c:322:7: warning: incompatible implicit declaration of built-in 
function ‘printf’

Fix this by including stdio.h

Cc: Daniel De Graaf <dgde...@tycho.nsa.gov>
Signed-off-by: Luis R. Rodriguez <mcg...@suse.com>
---
 stubdom/vtpm/vtpmblk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stubdom/vtpm/vtpmblk.c b/stubdom/vtpm/vtpmblk.c
index fe529ab5acbc..de8fbfa7f949 100644
--- a/stubdom/vtpm/vtpmblk.c
+++ b/stubdom/vtpm/vtpmblk.c
@@ -18,6 +18,7 @@
 #include "polarssl/sha1.h"
 #include <blkfront.h>
 #include <unistd.h>
+#include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>
 
-- 
2.6.2


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to