* [PATCH 1/2] rte_tailq.h: Fix compilation under FreeBSD @ 2014-06-05 16:12 Alan Carew [not found] ` <1401984728-21665-1-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Alan Carew @ 2014-06-05 16:12 UTC (permalink / raw) To: dev-VfR2kkLFssw 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. Signed-off-by: Alan Carew <alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> --- lib/librte_eal/common/include/rte_tailq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/include/rte_tailq.h b/lib/librte_eal/common/include/rte_tailq.h index 42df7d2..0ddcc11 100644 --- a/lib/librte_eal/common/include/rte_tailq.h +++ b/lib/librte_eal/common/include/rte_tailq.h @@ -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 { -- 1.9.3 ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <1401984728-21665-1-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* [PATCH 2/2] eal_pci: Fix compilation under FreeBSD [not found] ` <1401984728-21665-1-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 2014-06-05 16:12 ` Alan Carew [not found] ` <1401984728-21665-2-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-06-10 5:56 ` [PATCH 1/2] rte_tailq.h: " Cao, Waterman 2014-06-10 20:58 ` Bruce Richardson 2 siblings, 1 reply; 7+ messages in thread From: Alan Carew @ 2014-06-05 16:12 UTC (permalink / raw) To: dev-VfR2kkLFssw 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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> --- 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <1401984728-21665-2-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 2/2] eal_pci: Fix compilation under FreeBSD [not found] ` <1401984728-21665-2-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 2014-06-10 21:00 ` Bruce Richardson [not found] ` <20140610210047.GB25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Bruce Richardson @ 2014-06-10 21:00 UTC (permalink / raw) To: Alan Carew; +Cc: dev-VfR2kkLFssw On Thu, Jun 05, 2014 at 05:12:08PM +0100, Alan Carew wrote: > 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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20140610210047.GB25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org>]
* Re: [PATCH 2/2] eal_pci: Fix compilation under FreeBSD [not found] ` <20140610210047.GB25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org> @ 2014-06-11 9:56 ` Thomas Monjalon 0 siblings, 0 replies; 7+ messages in thread From: Thomas Monjalon @ 2014-06-11 9:56 UTC (permalink / raw) To: Alan Carew; +Cc: dev-VfR2kkLFssw 2014-06-10 22:00, Bruce Richardson: > On Thu, Jun 05, 2014 at 05:12:08PM +0100, Alan Carew wrote: > > 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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Applied for version 1.7.0. Thanks -- Thomas ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] rte_tailq.h: Fix compilation under FreeBSD [not found] ` <1401984728-21665-1-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-06-05 16:12 ` [PATCH 2/2] eal_pci: " Alan Carew @ 2014-06-10 5:56 ` Cao, Waterman 2014-06-10 20:58 ` Bruce Richardson 2 siblings, 0 replies; 7+ messages in thread From: Cao, Waterman @ 2014-06-10 5:56 UTC (permalink / raw) To: Carew, Alan, dev-VfR2kkLFssw@public.gmane.org Tested-by: Waterman Cao <waterman.cao-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> This 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] rte_tailq.h: Fix compilation under FreeBSD [not found] ` <1401984728-21665-1-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-06-05 16:12 ` [PATCH 2/2] eal_pci: " Alan Carew 2014-06-10 5:56 ` [PATCH 1/2] rte_tailq.h: " Cao, Waterman @ 2014-06-10 20:58 ` Bruce Richardson [not found] ` <20140610205805.GA25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org> 2 siblings, 1 reply; 7+ messages in thread From: Bruce Richardson @ 2014-06-10 20:58 UTC (permalink / raw) To: Alan Carew; +Cc: dev-VfR2kkLFssw On Thu, Jun 05, 2014 at 05:12:07PM +0100, Alan Carew wrote: > 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. > > Signed-off-by: Alan Carew <alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20140610205805.GA25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org>]
* Re: [PATCH 1/2] rte_tailq.h: Fix compilation under FreeBSD [not found] ` <20140610205805.GA25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org> @ 2014-06-11 9:56 ` Thomas Monjalon 0 siblings, 0 replies; 7+ messages in thread From: Thomas Monjalon @ 2014-06-11 9:56 UTC (permalink / raw) To: Alan Carew; +Cc: dev-VfR2kkLFssw > > 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. > > > > Signed-off-by: Alan Carew <alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> > > Acked-by: Bruce Richardson <bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Applied for version 1.7.0. Thanks -- Thomas ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-11 9:56 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-05 16:12 [PATCH 1/2] rte_tailq.h: Fix compilation under FreeBSD Alan Carew [not found] ` <1401984728-21665-1-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-06-05 16:12 ` [PATCH 2/2] eal_pci: " Alan Carew [not found] ` <1401984728-21665-2-git-send-email-alan.carew-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2014-06-10 21:00 ` Bruce Richardson [not found] ` <20140610210047.GB25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org> 2014-06-11 9:56 ` Thomas Monjalon 2014-06-10 5:56 ` [PATCH 1/2] rte_tailq.h: " Cao, Waterman 2014-06-10 20:58 ` Bruce Richardson [not found] ` <20140610205805.GA25593-IWE99D/oH1/+pXziaqXtF9h3ngVCH38I@public.gmane.org> 2014-06-11 9:56 ` Thomas Monjalon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).