rte_tailq.h: Fix compilation under FreeBSD
PATCH 1/2 rte_tailq.h: Fix compilation under FreeBSD
Recent change to rte_dump_tailq, which now uses a FILE parameter causes compilation to fail under FreeBSD and sourced to a missing include of stdio.h
This and next patch(both small) allows to compile without error.
--- lib/librte_eal/common/include/rte_tailq.h | 1 + 1 file changed, 1 insertion(+)
lib/librte_eal/common/include/rte_tailq.h +1 -0
@@ -45,6 +45,7 @@ extern "C" {#endif #include <sys/queue.h> +#include <stdio.h> /** dummy structure type used by the rte_tailq APIs */ struct rte_dummy {
Signature · 1 line
1.9.3
PATCH 2/2 eal_pci: Fix compilation under FreeBSD
In reply to a message not in the archiveI'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)
--- lib/librte_eal/bsdapp/eal/eal_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_eal/bsdapp/eal/eal_pci.c +1 -1
@@ -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" );
Signature · 1 line
1.9.3
Cao, Waterman
Tested-byThis patch is to fix compilation error in the FreeBSD 10.0 like the followings:
.. /include/rte_tailq.h:177:21: error: unknown type name 'FILE' void rte_dump_tailq(FILE *f); ../include/rte_memory.h:146:30: error: unknown type name 'FILE' void rte_dump_physmem_layout(FILE *f);
After merged this patch with last dpdk.org, compilation can pass without error in FreeBSD 10.0
Bruce Richardson
Acked-byQuoted 7 lines · Alan Carew
Recent change to
rte_dump_tailq, which now uses a FILE parameter causes compilation to fail under FreeBSD and sourced to a missing include ofstdio.hThis and next patch(both small) allows to compile without error.
Signed-off-by Alan Carew <[email protected]>
Bruce Richardson
Acked-byRe: [PATCH 2/2] eal_pci: Fix compilation under FreeBSD
In reply to a message not in the archiveQuoted 7 lines · Alan Carew
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_unusedtopci_unbind_kernel_driver(struct rte_pci_device *dev)Signed-off-by Alan Carew <[email protected]>
Re: [PATCH 2/2] eal_pci: Fix compilation under FreeBSD
In reply to a message not in the archive2014-06-10 22:00, Bruce Richardson:
Quoted 10 lines · Alan Carew
Quoted 7 lines
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_unusedtopci_unbind_kernel_driver(struct rte_pci_device *dev)Signed-off-by Alan Carew <[email protected]>Acked-by Bruce Richardson <[email protected]>
Applied for version 1.7.0.
Thanks
Signature · 1 line
Thomas
Quoted 9 lines
Quoted 7 lines
Recent change to
rte_dump_tailq, which now uses a FILE parameter causes compilation to fail under FreeBSD and sourced to a missing include ofstdio.hThis and next patch(both small) allows to compile without error.
Signed-off-by Alan Carew <[email protected]>Acked-by Bruce Richardson <[email protected]>
Applied for version 1.7.0.
Thanks
Signature · 1 line
Thomas