Received: from eggs.gnu.org ([2001:4830:134:3::10]:48917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEeIE-0006nw-Dx for qemu-devel@nongnu.org; Sat, 15 Feb 2014 07:24:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEeI5-0000AM-1L for qemu-devel@nongnu.org; Sat, 15 Feb 2014 07:24:26 -0500 From: Michael Tokarev Date: Sat, 15 Feb 2014 16:18:16 +0400 Message-Id: <1392466700-21770-7-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1392466700-21770-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1392466700-21770-1-git-send-email-mjt@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 06/10] net: declare struct iovec in checksum.h to fix compiler warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Michael Tokarev The checksum calculation header exports a function that refers to struct iov defined in iov.h. Without including the former, build fails like this: In file included from hw/net/fsl_etsec/rings.c:24:0: include/net/checksum.h:51:31: error: =E2=80=98struct iovec=E2=80=99 dec= lared 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] Mention struct iovec there. Reported-by: Alexander Graf Signed-off-by: Michael Tokarev --- include/net/checksum.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net/checksum.h b/include/net/checksum.h index 80203fb..2d7a363 100644 --- a/include/net/checksum.h +++ b/include/net/checksum.h @@ -19,6 +19,7 @@ #define QEMU_NET_CHECKSUM_H =20 #include +struct iovec; =20 uint32_t net_checksum_add_cont(int len, uint8_t *buf, int seq); uint16_t net_checksum_finish(uint32_t sum); --=20 1.7.10.4