From: Bruce Richardson Date: Mon, 16 Mar 2020 11:29:51 +0000 (+0000) Subject: pci: remove unneeded includes in public header file X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0dcba52562873f5efa437b61821be7c1bd459a34;hp=341a793eb193a104c571172e724a98b2552c55cf;p=dpdk.git pci: remove unneeded includes in public header file The rte_pci.h file includes more header files than are actually needed, which means that all users of it also include those headers. This patch removes the unneeded headers - adding them elsewhere where other components were requiring them but not including them directly. Fixes: c752998b5e2e ("pci: introduce library and driver") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson Acked-by: Thomas Monjalon --- diff --git a/drivers/bus/ifpga/rte_bus_ifpga.h b/drivers/bus/ifpga/rte_bus_ifpga.h index 88a6289642..a6eeaaf568 100644 --- a/drivers/bus/ifpga/rte_bus_ifpga.h +++ b/drivers/bus/ifpga/rte_bus_ifpga.h @@ -17,6 +17,7 @@ extern "C" { #include #include +#include #include /** Name of Intel FPGA Bus */ diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h index 961c606340..16de1b3973 100644 --- a/drivers/common/mlx5/mlx5_common.h +++ b/drivers/common/mlx5/mlx5_common.h @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/lib/librte_pci/rte_pci.h b/lib/librte_pci/rte_pci.h index c87891405c..c591af010d 100644 --- a/lib/librte_pci/rte_pci.h +++ b/lib/librte_pci/rte_pci.h @@ -16,17 +16,11 @@ extern "C" { #endif -#include #include #include -#include #include -#include #include -#include -#include - /** Formatting string for PCI device identifier: Ex: 0000:00:01.0 */ #define PCI_PRI_FMT "%.4" PRIx16 ":%.2" PRIx8 ":%.2" PRIx8 ".%" PRIx8 #define PCI_PRI_STR_SIZE sizeof("XXXXXXXX:XX:XX.X")