[dpdk-dev] [PATCH 2/2] eal_pci: Fix compilation under FreeBSD

Alan Carew alan.carew at intel.com
Thu Jun 5 18:12:08 CEST 2014


I'm not sure why this has not caused an issue before, perhaps
missing -Werror=unused-parameter or super-set
and subsequently fixed.
This patch adds __rte_unused to
pci_unbind_kernel_driver(struct rte_pci_device *dev)

Signed-off-by: Alan Carew <alan.carew at intel.com>
---
 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 94ae461..5c4d81b 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");
-- 
1.9.3



More information about the dev mailing list