From patchwork Thu Feb 6 15:30:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 317481 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C47CD2C00A0 for ; Fri, 7 Feb 2014 02:30:56 +1100 (EST) Received: from localhost ([::1]:37052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBQuj-0003f1-0C for incoming@patchwork.ozlabs.org; Thu, 06 Feb 2014 10:30:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBQuF-0003eo-Uj for qemu-devel@nongnu.org; Thu, 06 Feb 2014 10:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBQu7-0000W7-GU for qemu-devel@nongnu.org; Thu, 06 Feb 2014 10:30:23 -0500 Received: from cantor2.suse.de ([195.135.220.15]:36234 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBQu7-0000W2-AZ for qemu-devel@nongnu.org; Thu, 06 Feb 2014 10:30:15 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3357FABE1; Thu, 6 Feb 2014 15:30:14 +0000 (UTC) From: Alexander Graf To: qemu-devel@nongnu.org Date: Thu, 6 Feb 2014 16:30:11 +0100 Message-Id: <1391700611-32893-1-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.8.1.4 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.135.220.15 Cc: Dmitry Fleytman , Stefan Hajnoczi , Anthony Liguori Subject: [Qemu-devel] [PATCH] net: Include iov.h in checksum.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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 +#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);