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 v2 1/8] stubdom/vtpm: include stdio.h for declaration of printf
Date: Wed, 2 Oct 2019 19:05:36 +0200 [thread overview]
Message-ID: <20191002170543.26571-2-olaf@aepfle.de> (raw)
In-Reply-To: <20191002170543.26571-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>
cked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
---
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-10-02 17:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-02 17:05 [Xen-devel] [PATCH v2 0/8] tools, doc and stubdom fixes Olaf Hering
2019-10-02 17:05 ` Olaf Hering [this message]
2019-10-13 16:20 ` [Xen-devel] [PATCH v2 1/8] stubdom/vtpm: include stdio.h for declaration of printf Samuel Thibault
2019-10-13 16:21 ` Samuel Thibault
2019-10-13 16:50 ` Olaf Hering
2019-10-13 16:55 ` Samuel Thibault
2019-10-14 9:02 ` Wei Liu
2019-10-14 13:40 ` Jürgen Groß
2019-10-02 17:05 ` [Xen-devel] [PATCH v2 2/8] tools: add with-xen-scriptdir configure option Olaf Hering
2019-10-18 11:58 ` Olaf Hering
2019-10-02 17:05 ` [Xen-devel] [PATCH v2 3/8] Use XEN_SCRIPT_DIR to refer to /etc/xen/scripts Olaf Hering
2019-10-02 17:05 ` [Xen-devel] [PATCH v2 4/8] Remove tools/examples/README.incompatibilities Olaf Hering
2019-10-02 17:05 ` [Xen-devel] [PATCH v2 5/8] tools: remove empty xl.conf Olaf Hering
2019-10-02 17:05 ` [Xen-devel] [PATCH v2 6/8] Remove tools/examples/cpupool Olaf Hering
2019-10-02 17:05 ` [Xen-devel] [PATCH v2 7/8] docs: substitute XEN_CONFIG_DIR in xl.conf.5 Olaf Hering
2019-10-02 17:05 ` [Xen-devel] [PATCH v2 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=20191002170543.26571-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.