[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] stubdom/vtpm: include stdio.h for declaration of printf



commit 55ab292c42db41b05cfdba012680bf1e0ea02f7a
Author:     Olaf Hering <olaf@xxxxxxxxx>
AuthorDate: Wed Oct 2 19:05:36 2019 +0200
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon Oct 14 14:42:37 2019 +0100

    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 '<stdio.h>' or provide a declaration of 
'printf'
    
    Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
    Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
    Reviewed-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
    Release-acked-by: Juergen Gross <jgross@xxxxxxxx>
---
 stubdom/vtpm/vtpmblk.c | 1 +
 1 file changed, 1 insertion(+)

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 <unistd.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stdio.h>
 
 /*Encryption key and block sizes */
 #define BLKSZ 16
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.