From: David Marchand Date: Mon, 12 Aug 2019 06:53:33 +0000 (+0200) Subject: remove useless include of EAL memory config header X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8ac3591694e105d47968f5f29b8c19511f21e41c;p=dpdk.git remove useless include of EAL memory config header Restrict this header inclusion to its real users. Fixes: 028669bc9f0d ("eal: hide shared memory config") Cc: stable@dpdk.org Signed-off-by: David Marchand Acked-by: Anatoly Burakov --- diff --git a/app/test/test_external_mem.c b/app/test/test_external_mem.c index 97bde1cfbc..7eb81f6448 100644 --- a/app/test/test_external_mem.c +++ b/app/test/test_external_mem.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/app/test/test_malloc.c b/app/test/test_malloc.c index 7243e83894..a16e28cc32 100644 --- a/app/test/test_malloc.c +++ b/app/test/test_malloc.c @@ -12,7 +12,6 @@ #include #include -#include #include #include #include diff --git a/app/test/test_memory.c b/app/test/test_memory.c index 3da803e4e1..7d5ae99bab 100644 --- a/app/test/test_memory.c +++ b/app/test/test_memory.c @@ -6,7 +6,6 @@ #include #include -#include #include #include #include diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c index 7501b63c58..7edfd06c4d 100644 --- a/app/test/test_memzone.c +++ b/app/test/test_memzone.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/app/test/test_tailq.c b/app/test/test_tailq.c index 7c9b69fdb9..9520219b0a 100644 --- a/app/test/test_tailq.c +++ b/app/test/test_tailq.c @@ -10,7 +10,6 @@ #include #include -#include #include #include diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index a2f4825160..e7d240f9d4 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -10,7 +10,6 @@ #include #include -#include #include #include #include diff --git a/drivers/bus/pci/bsd/pci.c b/drivers/bus/pci/bsd/pci.c index 8f07ed94ba..7777179625 100644 --- a/drivers/bus/pci/bsd/pci.c +++ b/drivers/bus/pci/bsd/pci.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c index 43debaa251..1ac2bff779 100644 --- a/drivers/bus/pci/linux/pci.c +++ b/drivers/bus/pci/linux/pci.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/bus/pci/linux/pci_uio.c b/drivers/bus/pci/linux/pci_uio.c index f240fe4f21..e0313618b0 100644 --- a/drivers/bus/pci/linux/pci_uio.c +++ b/drivers/bus/pci/linux/pci_uio.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus/pci/linux/pci_vfio.c index 1ceb1c07b4..faf2990a73 100644 --- a/drivers/bus/pci/linux/pci_vfio.c +++ b/drivers/bus/pci/linux/pci_vfio.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/bus/vmbus/linux/vmbus_uio.c b/drivers/bus/vmbus/linux/vmbus_uio.c index be6b677f99..10e50c9b5a 100644 --- a/drivers/bus/vmbus/linux/vmbus_uio.c +++ b/drivers/bus/vmbus/linux/vmbus_uio.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/event/opdl/opdl_ring.c b/drivers/event/opdl/opdl_ring.c index e8b29e2c77..06fb5b3376 100644 --- a/drivers/event/opdl/opdl_ring.c +++ b/drivers/event/opdl/opdl_ring.c @@ -16,7 +16,6 @@ #include #include #include -#include #include "opdl_ring.h" #include "opdl_log.h" diff --git a/drivers/net/mlx4/mlx4_mr.c b/drivers/net/mlx4/mlx4_mr.c index 80827ce75d..470cee06be 100644 --- a/drivers/net/mlx4/mlx4_mr.c +++ b/drivers/net/mlx4/mlx4_mr.c @@ -26,6 +26,7 @@ #include #include +#include #include #include #include diff --git a/drivers/net/mlx4/mlx4_mr.h b/drivers/net/mlx4/mlx4_mr.h index 9d125e239d..af5251a960 100644 --- a/drivers/net/mlx4/mlx4_mr.h +++ b/drivers/net/mlx4/mlx4_mr.h @@ -19,7 +19,6 @@ #pragma GCC diagnostic error "-Wpedantic" #endif -#include #include #include #include diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index dc7b10b2de..87ac91a240 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c index 872d0591ea..0d549b68e6 100644 --- a/drivers/net/mlx5/mlx5_mr.c +++ b/drivers/net/mlx5/mlx5_mr.c @@ -11,6 +11,7 @@ #pragma GCC diagnostic error "-Wpedantic" #endif +#include #include #include #include diff --git a/drivers/net/mlx5/mlx5_mr.h b/drivers/net/mlx5/mlx5_mr.h index 89e89b7967..48264c8294 100644 --- a/drivers/net/mlx5/mlx5_mr.h +++ b/drivers/net/mlx5/mlx5_mr.h @@ -21,7 +21,6 @@ #pragma GCC diagnostic error "-Wpedantic" #endif -#include #include #include #include diff --git a/drivers/net/virtio/virtio_user/vhost_kernel.c b/drivers/net/virtio/virtio_user/vhost_kernel.c index 6b19180d72..5c81e8dd9f 100644 --- a/drivers/net/virtio/virtio_user/vhost_kernel.c +++ b/drivers/net/virtio/virtio_user/vhost_kernel.c @@ -8,7 +8,6 @@ #include #include -#include #include "vhost.h" #include "virtio_user_dev.h" diff --git a/drivers/net/virtio/virtio_user/vhost_user.c b/drivers/net/virtio/virtio_user/vhost_user.c index 4b74bd2d80..a4b5c25cd3 100644 --- a/drivers/net/virtio/virtio_user/vhost_user.c +++ b/drivers/net/virtio/virtio_user/vhost_user.c @@ -13,7 +13,6 @@ #include #include -#include #include "vhost.h" #include "virtio_user_dev.h" diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c index fef89e6bc5..18251439cf 100644 --- a/drivers/raw/ifpga/ifpga_rawdev.c +++ b/drivers/raw/ifpga/ifpga_rawdev.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c index bd7247cc3d..777ec4d340 100644 --- a/lib/librte_acl/rte_acl.c +++ b/lib/librte_acl/rte_acl.c @@ -2,6 +2,7 @@ * Copyright(c) 2010-2014 Intel Corporation */ +#include #include #include #include diff --git a/lib/librte_acl/rte_acl_osdep.h b/lib/librte_acl/rte_acl_osdep.h index 68c1696046..b2c262dee7 100644 --- a/lib/librte_acl/rte_acl_osdep.h +++ b/lib/librte_acl/rte_acl_osdep.h @@ -39,7 +39,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/librte_eal/common/eal_common_memalloc.c b/lib/librte_eal/common/eal_common_memalloc.c index 3712719793..55189d0724 100644 --- a/lib/librte_eal/common/eal_common_memalloc.c +++ b/lib/librte_eal/common/eal_common_memalloc.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include diff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c index ef6c909cb4..99b8d6531d 100644 --- a/lib/librte_eal/common/eal_common_memzone.c +++ b/lib/librte_eal/common/eal_common_memzone.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/librte_eal/common/eal_memalloc.h b/lib/librte_eal/common/eal_memalloc.h index b96c9c512f..e953cd84e6 100644 --- a/lib/librte_eal/common/eal_memalloc.h +++ b/lib/librte_eal/common/eal_memalloc.h @@ -8,7 +8,6 @@ #include #include -#include /* * Allocate segment of specified page size. diff --git a/lib/librte_eal/common/eal_memcfg.h b/lib/librte_eal/common/eal_memcfg.h index 359beb2168..aea9a352d6 100644 --- a/lib/librte_eal/common/eal_memcfg.h +++ b/lib/librte_eal/common/eal_memcfg.h @@ -6,7 +6,6 @@ #define EAL_MEMCFG_H #include -#include #include #include #include diff --git a/lib/librte_eal/common/malloc_elem.h b/lib/librte_eal/common/malloc_elem.h index 207767c945..a1e5f7f02c 100644 --- a/lib/librte_eal/common/malloc_elem.h +++ b/lib/librte_eal/common/malloc_elem.h @@ -7,8 +7,6 @@ #include -#include - #define MIN_DATA_SIZE (RTE_CACHE_LINE_SIZE) /* dummy definition of struct so we can use pointers to it in malloc_elem struct */ diff --git a/lib/librte_eal/freebsd/eal/eal.c b/lib/librte_eal/freebsd/eal/eal.c index d53f0fe697..270ce54ca0 100644 --- a/lib/librte_eal/freebsd/eal/eal.c +++ b/lib/librte_eal/freebsd/eal/eal.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/librte_eal/freebsd/eal/eal_memory.c b/lib/librte_eal/freebsd/eal/eal_memory.c index 9b9a0577a3..cd31827c2b 100644 --- a/lib/librte_eal/freebsd/eal/eal_memory.c +++ b/lib/librte_eal/freebsd/eal/eal_memory.c @@ -11,7 +11,6 @@ #include #include -#include #include #include #include diff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c index 946222ccdb..c6ad231e0d 100644 --- a/lib/librte_eal/linux/eal/eal.c +++ b/lib/librte_eal/linux/eal/eal.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/librte_eal/linux/eal/eal_memalloc.c b/lib/librte_eal/linux/eal/eal_memalloc.c index 1f6a7c18fe..af6d0d023a 100644 --- a/lib/librte_eal/linux/eal/eal_memalloc.c +++ b/lib/librte_eal/linux/eal/eal_memalloc.c @@ -35,7 +35,6 @@ #include #include -#include #include #include #include diff --git a/lib/librte_eal/linux/eal/eal_memory.c b/lib/librte_eal/linux/eal/eal_memory.c index 1c089a1ef9..8f62c343d6 100644 --- a/lib/librte_eal/linux/eal/eal_memory.c +++ b/lib/librte_eal/linux/eal/eal_memory.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/librte_rcu/rte_rcu_qsbr.c b/lib/librte_rcu/rte_rcu_qsbr.c index ce7f93dd30..a6b66ac09b 100644 --- a/lib/librte_rcu/rte_rcu_qsbr.c +++ b/lib/librte_rcu/rte_rcu_qsbr.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include