From: Alexander Graf <agraf@suse.de>
To: qemu-devel@nongnu.org
Cc: Dmitry Fleytman <dmitry@daynix.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Anthony Liguori <aliguori@amazon.com>
Subject: [Qemu-devel] [PATCH] net: Include iov.h in checksum.h
Date: Thu, 6 Feb 2014 16:30:11 +0100 [thread overview]
Message-ID: <1391700611-32893-1-git-send-email-agraf@suse.de> (raw)
The checksum calculation header exports a function that refers to struct
iov which is defined in iov.h. Include the header so that the compiler
knows what this struct is about.
Fixes the following compile failure for me:
In file included from hw/net/fsl_etsec/rings.c:24:0:
include/net/checksum.h:51:31: error: ‘struct iovec’ declared inside parameter list [-Werror]
include/net/checksum.h:51:31: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
Signed-off-by: Alexander Graf <agraf@suse.de>
---
include/net/checksum.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/net/checksum.h b/include/net/checksum.h
index 80203fb..a81cf65 100644
--- a/include/net/checksum.h
+++ b/include/net/checksum.h
@@ -19,6 +19,7 @@
#define QEMU_NET_CHECKSUM_H
#include <stdint.h>
+#include "qemu/iov.h"
uint32_t net_checksum_add_cont(int len, uint8_t *buf, int seq);
uint16_t net_checksum_finish(uint32_t sum);
--
1.8.1.4
next reply other threads:[~2014-02-06 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 15:30 Alexander Graf [this message]
2014-02-07 7:05 ` [Qemu-devel] [PATCH] net: Include iov.h in checksum.h Michael Tokarev
2014-02-07 7:54 ` Alexander Graf
2014-02-10 10:20 ` Stefan Hajnoczi
2014-02-11 10:30 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
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=1391700611-32893-1-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=aliguori@amazon.com \
--cc=dmitry@daynix.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).