]> git.droids-corp.org - dpdk.git/commitdiff
remove useless include of EAL memory config header
authorDavid Marchand <david.marchand@redhat.com>
Mon, 12 Aug 2019 06:53:33 +0000 (08:53 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 9 Oct 2019 08:22:24 +0000 (10:22 +0200)
Restrict this header inclusion to its real users.

Fixes: 028669bc9f0d ("eal: hide shared memory config")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
33 files changed:
app/test/test_external_mem.c
app/test/test_malloc.c
app/test/test_memory.c
app/test/test_memzone.c
app/test/test_tailq.c
drivers/bus/fslmc/fslmc_bus.c
drivers/bus/pci/bsd/pci.c
drivers/bus/pci/linux/pci.c
drivers/bus/pci/linux/pci_uio.c
drivers/bus/pci/linux/pci_vfio.c
drivers/bus/vmbus/linux/vmbus_uio.c
drivers/event/opdl/opdl_ring.c
drivers/net/mlx4/mlx4_mr.c
drivers/net/mlx4/mlx4_mr.h
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_mr.c
drivers/net/mlx5/mlx5_mr.h
drivers/net/virtio/virtio_user/vhost_kernel.c
drivers/net/virtio/virtio_user/vhost_user.c
drivers/raw/ifpga/ifpga_rawdev.c
lib/librte_acl/rte_acl.c
lib/librte_acl/rte_acl_osdep.h
lib/librte_eal/common/eal_common_memalloc.c
lib/librte_eal/common/eal_common_memzone.c
lib/librte_eal/common/eal_memalloc.h
lib/librte_eal/common/eal_memcfg.h
lib/librte_eal/common/malloc_elem.h
lib/librte_eal/freebsd/eal/eal.c
lib/librte_eal/freebsd/eal/eal_memory.c
lib/librte_eal/linux/eal/eal.c
lib/librte_eal/linux/eal/eal_memalloc.c
lib/librte_eal/linux/eal/eal_memory.c
lib/librte_rcu/rte_rcu_qsbr.c

index 97bde1cfbc487c4f0e31931aac9b2406a3bc8735..7eb81f64488ed8c8554bc6800cdd983e1c8e13e2 100644 (file)
@@ -13,7 +13,6 @@
 #include <rte_common.h>
 #include <rte_debug.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_errno.h>
 #include <rte_malloc.h>
 #include <rte_ring.h>
index 7243e838947228546640e28a0bd8904da4ee976c..a16e28cc32c88a8e8fbc9c35f83c89d60bea7d55 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <rte_common.h>
 #include <rte_memory.h>
-#include <rte_eal_memconfig.h>
 #include <rte_per_lcore.h>
 #include <rte_launch.h>
 #include <rte_eal.h>
index 3da803e4e1f012ae3863a3a31408ccf1eb2ac3d6..7d5ae99babfb6fb2eef59aca621a079b976c9739 100644 (file)
@@ -6,7 +6,6 @@
 #include <stdint.h>
 
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_memory.h>
 #include <rte_common.h>
 #include <rte_memzone.h>
index 7501b63c5855d171d53339a148bd479711ba1364..7edfd06c4d48cbf1dec0f14de716cdb77bb0aaad 100644 (file)
@@ -13,7 +13,6 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_common.h>
 #include <rte_string_fns.h>
 #include <rte_errno.h>
index 7c9b69fdb96f48703e215add6cf3c52078b1f70c..9520219b0ad7c0b1a290256d94eb6c80570dfec8 100644 (file)
@@ -10,7 +10,6 @@
 #include <sys/queue.h>
 
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_string_fns.h>
 #include <rte_tailq.h>
 
index a2f482516062a8c581cf0edb5ce725e161bc1881..e7d240f9d4224af0edeedd302778164332a55311 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <rte_log.h>
 #include <rte_bus.h>
-#include <rte_eal_memconfig.h>
 #include <rte_malloc.h>
 #include <rte_devargs.h>
 #include <rte_memcpy.h>
index 8f07ed94baf8822692d4ea8a94a05a1e86e922b2..77771796256ee475f190d417d797f7d007d9c9da 100644 (file)
@@ -33,7 +33,6 @@
 #include <rte_launch.h>
 #include <rte_memory.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
 #include <rte_malloc.h>
index 43debaa25114e906f54abf9860d94ebf8f5ecdfe..1ac2bff779f54f06c6b16d54422a7b10b3f70a1e 100644 (file)
@@ -9,7 +9,6 @@
 #include <rte_bus.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_eal_memconfig.h>
 #include <rte_malloc.h>
 #include <rte_devargs.h>
 #include <rte_memcpy.h>
index f240fe4f2123222a2ada109dd63a0896a50947d6..e0313618b0a8bba0d5822be019bca7c07ce0e5a3 100644 (file)
@@ -20,7 +20,6 @@
 #include <rte_log.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_eal_memconfig.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 
index 1ceb1c07b405dacc9fdcf7fc7297221cb6ac5a18..faf2990a73198612be4b3b2be990364362f827c9 100644 (file)
@@ -14,7 +14,6 @@
 #include <rte_log.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_eal_memconfig.h>
 #include <rte_malloc.h>
 #include <rte_vfio.h>
 #include <rte_eal.h>
index be6b677f99d03fadeee6c72d5e66374cdda713ce..10e50c9b5a10bf3a580a045f753a3154ddb775f9 100644 (file)
@@ -14,7 +14,6 @@
 #include <rte_log.h>
 #include <rte_bus.h>
 #include <rte_memory.h>
-#include <rte_eal_memconfig.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 #include <rte_bus_vmbus.h>
index e8b29e2c7735cd2a644dd530017af6ea579f428f..06fb5b33760d1b5ebb435e19a73c8137f6dfa38e 100644 (file)
@@ -16,7 +16,6 @@
 #include <rte_memcpy.h>
 #include <rte_memory.h>
 #include <rte_memzone.h>
-#include <rte_eal_memconfig.h>
 
 #include "opdl_ring.h"
 #include "opdl_log.h"
index 80827ce75d03e89baadd9b563b514f13356b2e19..470cee06be79ab8d117ca747994b969a4ca5c0e5 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <rte_branch_prediction.h>
 #include <rte_common.h>
+#include <rte_eal_memconfig.h>
 #include <rte_errno.h>
 #include <rte_malloc.h>
 #include <rte_memory.h>
index 9d125e239d9b59cd27bb98021cf33718c5a2e720..af5251a960dd17c8993169936401968b0e3c8c96 100644 (file)
@@ -19,7 +19,6 @@
 #pragma GCC diagnostic error "-Wpedantic"
 #endif
 
-#include <rte_eal_memconfig.h>
 #include <rte_ethdev.h>
 #include <rte_rwlock.h>
 #include <rte_bitmap.h>
index dc7b10b2de7c27ff08d7b59693075d539dde8166..87ac91a240db45bd93738cdc68c39706fdd23cfc 100644 (file)
@@ -32,7 +32,6 @@
 #include <rte_bus_pci.h>
 #include <rte_common.h>
 #include <rte_config.h>
-#include <rte_eal_memconfig.h>
 #include <rte_kvargs.h>
 #include <rte_rwlock.h>
 #include <rte_spinlock.h>
index 872d0591eaa20ee38bce6f1be6bce27424320200..0d549b68e65a7b07a76ffb12f0dbd624caca525f 100644 (file)
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic error "-Wpedantic"
 #endif
 
+#include <rte_eal_memconfig.h>
 #include <rte_mempool.h>
 #include <rte_malloc.h>
 #include <rte_rwlock.h>
index 89e89b7967593eb83a3a981098948f52524c0fa2..48264c82948e8874792efc79595c604457ec38bc 100644 (file)
@@ -21,7 +21,6 @@
 #pragma GCC diagnostic error "-Wpedantic"
 #endif
 
-#include <rte_eal_memconfig.h>
 #include <rte_ethdev.h>
 #include <rte_rwlock.h>
 #include <rte_bitmap.h>
index 6b19180d72a6b14627a6088d28a5cdeb2c6a0d48..5c81e8dd9f42c8bb1a09f44065a3032458cd9007 100644 (file)
@@ -8,7 +8,6 @@
 #include <unistd.h>
 
 #include <rte_memory.h>
-#include <rte_eal_memconfig.h>
 
 #include "vhost.h"
 #include "virtio_user_dev.h"
index 4b74bd2d8033e7a785c3c90300c31aa14ebc9709..a4b5c25cd35bcd15dfb96bb9ceafece3791dca05 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <rte_string_fns.h>
 #include <rte_fbarray.h>
-#include <rte_eal_memconfig.h>
 
 #include "vhost.h"
 #include "virtio_user_dev.h"
index fef89e6bc55b9a4909dd638aa153ba2e79d4f3e8..18251439cf45a51c673ee418fc9cef8a8ff5665f 100644 (file)
@@ -10,7 +10,6 @@
 #include <fcntl.h>
 #include <rte_log.h>
 #include <rte_bus.h>
-#include <rte_eal_memconfig.h>
 #include <rte_malloc.h>
 #include <rte_devargs.h>
 #include <rte_memcpy.h>
index bd7247cc3d502257cf6b882c87bfa3ba2ea6c6e4..777ec4d340ee45a5ac6361f2011ba9a88d24f1b7 100644 (file)
@@ -2,6 +2,7 @@
  * Copyright(c) 2010-2014 Intel Corporation
  */
 
+#include <rte_eal_memconfig.h>
 #include <rte_string_fns.h>
 #include <rte_acl.h>
 #include <rte_tailq.h>
index 68c169604656b7c48bbb03be2042ebbd3a799d2c..b2c262dee78e8ef828e65ad071818e558b8d0ef4 100644 (file)
@@ -39,7 +39,6 @@
 #include <rte_branch_prediction.h>
 #include <rte_malloc.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_per_lcore.h>
 #include <rte_errno.h>
 #include <rte_string_fns.h>
index 3712719793623a20339f068eb430972f75338d3a..55189d0724014223b839caaff176ac2409c554f7 100644 (file)
@@ -9,7 +9,6 @@
 #include <rte_fbarray.h>
 #include <rte_memzone.h>
 #include <rte_memory.h>
-#include <rte_eal_memconfig.h>
 #include <rte_string_fns.h>
 #include <rte_rwlock.h>
 
index ef6c909cb42a7cee06e5ad1e707d0e40ae43964a..99b8d6531d823adab98821cff8f035b6faccb207 100644 (file)
@@ -15,7 +15,6 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_per_lcore.h>
 #include <rte_errno.h>
 #include <rte_string_fns.h>
index b96c9c512f36a8538f1127892eebc0c2ba2aff49..e953cd84e6ce4e4f7c92169c1ee693c1563fdc25 100644 (file)
@@ -8,7 +8,6 @@
 #include <stdbool.h>
 
 #include <rte_memory.h>
-#include <rte_eal_memconfig.h>
 
 /*
  * Allocate segment of specified page size.
index 359beb216876c7ae36c768a982068e75ae433542..aea9a352d62c9349b69537b2c382804ab0fbc62b 100644 (file)
@@ -6,7 +6,6 @@
 #define EAL_MEMCFG_H
 
 #include <rte_config.h>
-#include <rte_eal_memconfig.h>
 #include <rte_malloc_heap.h>
 #include <rte_memory.h>
 #include <rte_memzone.h>
index 207767c94568291ba9c5f8635ce2706c7b09fae0..a1e5f7f02cc59fc83a04bd71f9d851a76b40d804 100644 (file)
@@ -7,8 +7,6 @@
 
 #include <stdbool.h>
 
-#include <rte_eal_memconfig.h>
-
 #define MIN_DATA_SIZE (RTE_CACHE_LINE_SIZE)
 
 /* dummy definition of struct so we can use pointers to it in malloc_elem struct */
index d53f0fe697a4b39e32bd70525a5ab80c9da43119..270ce54ca0b8f8ef1b64161a2f50ded73feffcdd 100644 (file)
@@ -26,7 +26,6 @@
 #include <rte_memory.h>
 #include <rte_launch.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_errno.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
index 9b9a0577a32b8d9da83c4caa16820d468c9d6569..cd31827c2bb49a2174cd8400c4051751fe7d82c5 100644 (file)
@@ -11,7 +11,6 @@
 #include <fcntl.h>
 
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_errno.h>
 #include <rte_log.h>
 #include <rte_string_fns.h>
index 946222ccdb7a980c595a7a2dbb75ce98415db974..c6ad231e0df1eedfe2f1f56783bc783b54178470 100644 (file)
@@ -32,7 +32,6 @@
 #include <rte_memory.h>
 #include <rte_launch.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_errno.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
index 1f6a7c18fe5c89bf199e5ba1326306322e6c3dae..af6d0d023a6ce1c6ac5625f737732b6f1e7da7ac 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <rte_common.h>
 #include <rte_log.h>
-#include <rte_eal_memconfig.h>
 #include <rte_eal.h>
 #include <rte_errno.h>
 #include <rte_memory.h>
index 1c089a1ef90e49d45dcb0c049dfd629068af37ba..8f62c343d6381ef49c364cd152d301fe846f0810 100644 (file)
@@ -38,7 +38,6 @@
 #include <rte_memory.h>
 #include <rte_launch.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
 #include <rte_common.h>
index ce7f93dd30bab9b99a22a89b7e1ce55d83d671c9..a6b66ac09bcd0903181086ee3fb4350b0bd148c3 100644 (file)
@@ -14,7 +14,6 @@
 #include <rte_memory.h>
 #include <rte_malloc.h>
 #include <rte_eal.h>
-#include <rte_eal_memconfig.h>
 #include <rte_atomic.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>