From: Changchun Ouyang Date: Fri, 27 Feb 2015 02:30:10 +0000 (+0800) Subject: virtio: fix build on freebsd X-Git-Tag: spdx-start~9519 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a8e3219a92660929a18547f5f70cc3928c9fc865;p=dpdk.git virtio: fix build on freebsd This patch fixes the compilation issue on freebsd: lib/librte_pmd_virtio/virtio_ethdev.c: In function 'virtio_resource_init': lib/librte_pmd_virtio/virtio_ethdev.c:1071:56: error: unused parameter 'pci_dev' [-Werror=unused-parameter] Fixes: da978dfdc43b ("virtio: use port IO to get PCI resource") Signed-off-by: Changchun Ouyang Acked-by: Cunming Liang --- diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c index 9eb02171f8..88ecd571d0 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; } -static int virtio_resource_init(struct rte_pci_device *pci_dev) +static int virtio_resource_init(struct rte_pci_device *pci_dev __rte_unused) { /* no setup required */ return 0;