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: c752998b5e
("pci: introduce library and driver")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
parent
341a793eb1
commit
0dcba52562
@ -17,6 +17,7 @@ extern "C" {
|
||||
|
||||
#include <rte_bus.h>
|
||||
#include <rte_pci.h>
|
||||
#include <rte_interrupts.h>
|
||||
#include <rte_spinlock.h>
|
||||
|
||||
/** Name of Intel FPGA Bus */
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include <rte_pci.h>
|
||||
#include <rte_debug.h>
|
||||
#include <rte_atomic.h>
|
||||
#include <rte_log.h>
|
||||
#include <rte_kvargs.h>
|
||||
|
@ -16,17 +16,11 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <sys/queue.h>
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <rte_debug.h>
|
||||
#include <rte_interrupts.h>
|
||||
|
||||
/** 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")
|
||||
|
Loading…
Reference in New Issue
Block a user