From: Alan Carew Date: Thu, 5 Jun 2014 16:12:08 +0000 (+0100) Subject: pci: fix build for FreeBSD X-Git-Tag: spdx-start~10766 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d10296d7ea9c7e4f0da51ff2fb9c89b838e06940;p=dpdk.git 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 --- 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");