From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xenproject.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
Olaf Hering <olaf@aepfle.de>, Quan Xu <quan.xu0@gmail.com>,
Daniel De Graaf <dgdegra@tycho.nsa.gov>
Subject: [Xen-devel] [PATCH RESEND v1 1/8] stubdom/vtpm: include stdio.h for declaration of printf
Date: Tue, 24 Sep 2019 16:03:12 +0200 [thread overview]
Message-ID: <20190924140319.11303-2-olaf@aepfle.de> (raw)
In-Reply-To: <20190924140319.11303-1-olaf@aepfle.de>
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>
---
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
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-09-24 14:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-24 14:03 [Xen-devel] [RESEND v1 0/8] tools, doc and stubdom fixes Olaf Hering
2019-09-24 14:03 ` Olaf Hering [this message]
2019-09-27 21:27 ` [Xen-devel] [PATCH RESEND v1 1/8] stubdom/vtpm: include stdio.h for declaration of printf Daniel De Graaf
2019-09-24 14:03 ` [Xen-devel] [PATCH RESEND v1 2/8] tools: move scripts from etc to libexec Olaf Hering
2019-09-24 14:09 ` Ian Jackson
2019-09-24 14:15 ` Olaf Hering
2019-09-24 14:17 ` Ian Jackson
2019-09-24 15:19 ` Olaf Hering
2019-09-30 16:49 ` Ian Jackson
2019-09-30 16:43 ` Olaf Hering
2019-09-24 14:03 ` [Xen-devel] [PATCH RESEND v1 3/8] Use XEN_SCRIPT_DIR to refer to /etc/xen/scripts Olaf Hering
2019-09-24 14:03 ` [Xen-devel] [PATCH RESEND v1 4/8] Remove tools/examples/README.incompatibilities Olaf Hering
2019-09-24 14:03 ` [Xen-devel] [PATCH RESEND v1 5/8] tools: remove empty xl.conf Olaf Hering
2019-09-24 14:03 ` [Xen-devel] [PATCH RESEND v1 6/8] Remove tools/examples/cpupool Olaf Hering
2019-09-24 14:03 ` [Xen-devel] [PATCH RESEND v1 7/8] docs: substitute XEN_CONFIG_DIR in xl.conf.5 Olaf Hering
2019-09-24 14:03 ` [Xen-devel] [PATCH v1 8/8] docs: remove stale create example from xl.1 Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190924140319.11303-2-olaf@aepfle.de \
--to=olaf@aepfle.de \
--cc=dgdegra@tycho.nsa.gov \
--cc=quan.xu0@gmail.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.