From d10296d7ea9c7e4f0da51ff2fb9c89b838e06940 Mon Sep 17 00:00:00 2001 From: Alan Carew Date: Thu, 5 Jun 2014 17:12:08 +0100 Subject: [PATCH] pci: fix build for FreeBSD Add __rte_unused to pci_unbind_kernel_driver(struct rte_pci_device *dev) Signed-off-by: Alan Carew Acked-by: Bruce Richardson --- lib/librte_eal/bsdapp/eal/eal_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c index 94ae461167..5c4d81b64f 100644 --- a/lib/librte_eal/bsdapp/eal/eal_pci.c +++ b/lib/librte_eal/bsdapp/eal/eal_pci.c @@ -110,7 +110,7 @@ static struct uio_res_list *uio_res_list = NULL; /* unbind kernel driver for this device */ static int -pci_unbind_kernel_driver(struct rte_pci_device *dev) +pci_unbind_kernel_driver(struct rte_pci_device *dev __rte_unused) { RTE_LOG(ERR, EAL, "RTE_PCI_DRV_FORCE_UNBIND flag is not implemented " "for BSD\n"); -- 2.20.1