File xen.55ab292c42db41b05cfdba012680bf1e0ea02f7a.patch of Package xen

From: Olaf Hering <olaf@aepfle.de>
Date: Wed, 2 Oct 2019 19:05:36 +0200
Subject: 55ab292c42db41b05cfdba012680bf1e0ea02f7a

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@aepfle.de>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
---
 stubdom/vtpm/vtpmblk.c | 1 +
 1 file changed, 1 insertion(+)

--- a/stubdom/vtpm/vtpmblk.c
+++ b/stubdom/vtpm/vtpmblk.c
@@ -11,24 +11,25 @@
  */
 
 #include <mini-os/byteorder.h>
 #include "vtpmblk.h"
 #include "tpm/tpm_marshalling.h"
 #include "vtpm_cmd.h"
 #include "polarssl/aes.h"
 #include "polarssl/sha1.h"
 #include <blkfront.h>
 #include <unistd.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stdio.h>
 
 /*Encryption key and block sizes */
 #define BLKSZ 16
 
 static struct blkfront_dev* blkdev = NULL;
 static int blkfront_fd = -1;
 static uint64_t slot_size = 0;
 
 int init_vtpmblk(struct tpmfront_dev* tpmfront_dev)
 {
    struct blkfront_info blkinfo;
    info("Initializing persistent NVM storage\n");
openSUSE Build Service is sponsored by