From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DB26E3208 for ; Fri, 27 Feb 2015 06:11:36 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 26 Feb 2015 21:11:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,657,1418112000"; d="scan'208";a="533570838" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by orsmga003.jf.intel.com with ESMTP; 26 Feb 2015 21:02:20 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by PGSMSX101.gar.corp.intel.com (10.221.44.78) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 27 Feb 2015 13:11:33 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.62]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.197]) with mapi id 14.03.0195.001; Fri, 27 Feb 2015 13:11:32 +0800 From: "Liang, Cunming" To: "Ouyang, Changchun" , "dev@dpdk.org" Thread-Topic: [PATCH] virtio: Fix compilation issue on freebsd Thread-Index: AQHQUjVZiDFoG6M15U+cNiBKBeaXs50D8Qnw Date: Fri, 27 Feb 2015 05:11:31 +0000 Message-ID: References: <1425004210-4044-1-git-send-email-changchun.ouyang@intel.com> In-Reply-To: <1425004210-4044-1-git-send-email-changchun.ouyang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] virtio: Fix compilation issue on freebsd X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 05:11:37 -0000 Hi, > -----Original Message----- > From: Ouyang, Changchun > Sent: Friday, February 27, 2015 10:30 AM > To: dev@dpdk.org > Cc: Liang, Cunming; Cao, Waterman; Ouyang, Changchun > Subject: [PATCH] virtio: Fix compilation issue on freebsd >=20 > This patch fixes the compilation issue on freebsd: >=20 > /root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c: In functio= n > 'virtio_resource_init': > /root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c:1071:56: er= ror: > unused parameter 'pci_dev' [-Werror=3Dunused-parameter] static int > virtio_resource_init(struct rte_pci_device *pci_dev) > ^ > cc1: all warnings being treated as errors >=20 > Signed-off-by: Changchun Ouyang > --- > lib/librte_pmd_virtio/virtio_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c > b/lib/librte_pmd_virtio/virtio_ethdev.c > index 9eb0217..88ecd57 100644 > --- a/lib/librte_pmd_virtio/virtio_ethdev.c > +++ b/lib/librte_pmd_virtio/virtio_ethdev.c > @@ -1068,7 +1068,7 @@ virtio_has_msix(const struct rte_pci_addr *loc > __rte_unused) > return 0; > } >=20 > -static int virtio_resource_init(struct rte_pci_device *pci_dev) > +static int virtio_resource_init(struct rte_pci_device *pci_dev __rte_unu= sed) > { > /* no setup required */ > return 0; > -- > 1.8.4.2 Acked-by: Cunming Liang