[dpdk-dev] eal: fix FreeBSD build

Message ID 1484835695-231973-1-git-send-email-pablo.de.lara.guarch@intel.com (mailing list archive)
State Accepted, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel compilation success Compilation OK

Commit Message

De Lara Guarch, Pablo Jan. 19, 2017, 2:21 p.m. UTC
  rte_bus_scan() and rte_bus_probe() have been introduced
in eal.c, but it is missing the rte_bus.h header file,
for BSD systems.

Fixes: f44abbc12fa0 ("bus: add scanning")
Fixes: c3cec1d80708 ("bus: add probing")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 lib/librte_eal/bsdapp/eal/eal.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Thomas Monjalon Jan. 19, 2017, 2:31 p.m. UTC | #1
2017-01-19 14:21, Pablo de Lara:
> rte_bus_scan() and rte_bus_probe() have been introduced
> in eal.c, but it is missing the rte_bus.h header file,
> for BSD systems.
> 
> Fixes: f44abbc12fa0 ("bus: add scanning")
> Fixes: c3cec1d80708 ("bus: add probing")
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Oh :/ I missed a last test when working on these patches.

Applied, thanks
  

Patch

diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c
index 534aeea..ee7c9de 100644
--- a/lib/librte_eal/bsdapp/eal/eal.c
+++ b/lib/librte_eal/bsdapp/eal/eal.c
@@ -64,6 +64,7 @@ 
 #include <rte_string_fns.h>
 #include <rte_cpuflags.h>
 #include <rte_interrupts.h>
+#include <rte_bus.h>
 #include <rte_pci.h>
 #include <rte_dev.h>
 #include <rte_devargs.h>