[RFC,v3,09/26] devargs: remove dependency on bus header
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>
---
app/test/test_vdev.c | 1 +
lib/eal/include/rte_devargs.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
Comments
On Thu, Jul 28, 2022 at 05:26:23PM +0200, David Marchand wrote:
> 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>
@@ -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.