[v4,09/27] devargs: remove dependency on bus header
Checks
Commit Message
We don't need to include rte_bus.h in rte_devargs.h.
Only a forward declaration of rte_bus and an inclusion of rte_dev.h are
needed.
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
---
app/test/test_vdev.c | 1 +
lib/eal/include/rte_devargs.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
@@ -8,6 +8,7 @@
#include <rte_common.h>
#include <rte_kvargs.h>
+#include <rte_bus.h>
#include <rte_bus_vdev.h>
#include "test.h"
@@ -22,7 +22,9 @@ extern "C" {
#include <stdio.h>
#include <rte_compat.h>
-#include <rte_bus.h>
+#include <rte_dev.h>
+
+struct rte_bus;
/**
* Bus type key in global devargs syntax.