From a8e3219a92660929a18547f5f70cc3928c9fc865 Mon Sep 17 00:00:00 2001 From: Changchun Ouyang Date: Fri, 27 Feb 2015 10:30:10 +0800 Subject: [PATCH] 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 --- lib/librte_pmd_virtio/virtio_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1