Only include the definition of LIST, TAILQ, etc where needed. Signed-off-by: Stephen Hemminger <step...@networkplumber.org> --- app/test-pmd/5tswap.c | 2 -- app/test-pmd/cmdline.c | 2 +- app/test-pmd/config.c | 2 +- app/test-pmd/csumonly.c | 1 - app/test-pmd/flowgen.c | 1 - app/test-pmd/hairpin.c | 1 - app/test-pmd/icmpecho.c | 1 - app/test-pmd/iofwd.c | 1 - app/test-pmd/macfwd.c | 1 - app/test-pmd/macswap.c | 1 - app/test-pmd/noisy_vnf.c | 1 - app/test-pmd/parameters.c | 1 - app/test-pmd/rxonly.c | 1 - app/test-pmd/testpmd.c | 1 - app/test-pmd/testpmd.h | 2 +- app/test-pmd/txonly.c | 1 - 16 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/app/test-pmd/5tswap.c b/app/test-pmd/5tswap.c index 8e8de2557a..2671fdcd9f 100644 --- a/app/test-pmd/5tswap.c +++ b/app/test-pmd/5tswap.c @@ -7,8 +7,6 @@ #include <stdint.h> #include <unistd.h> #include <inttypes.h> - -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 7b4e27eddf..3cfec19407 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -13,8 +13,8 @@ #include <string.h> #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> +#include <rte_bsd_queue.h> #include <rte_common.h> #include <rte_byteorder.h> #include <rte_log.h> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 0fda8e99f8..fe2e870bd4 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -13,7 +13,7 @@ #include <stdint.h> #include <inttypes.h> -#include <sys/queue.h> +#include <rte_bsd_queue.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index d355dbd8c0..babf4e1881 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/flowgen.c b/app/test-pmd/flowgen.c index 53b5f24f11..dc50f8c94f 100644 --- a/app/test-pmd/flowgen.c +++ b/app/test-pmd/flowgen.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/hairpin.c b/app/test-pmd/hairpin.c index 5e6b37974e..35d5c06047 100644 --- a/app/test-pmd/hairpin.c +++ b/app/test-pmd/hairpin.c @@ -8,7 +8,6 @@ #include <stdbool.h> #include <stdint.h> -#include <sys/queue.h> #include "testpmd.h" diff --git a/app/test-pmd/icmpecho.c b/app/test-pmd/icmpecho.c index c87b7a80df..7b51513070 100644 --- a/app/test-pmd/icmpecho.c +++ b/app/test-pmd/icmpecho.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/iofwd.c b/app/test-pmd/iofwd.c index ba06fae4a6..26dd787ca1 100644 --- a/app/test-pmd/iofwd.c +++ b/app/test-pmd/iofwd.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/macfwd.c b/app/test-pmd/macfwd.c index d19ace7395..5ba3549270 100644 --- a/app/test-pmd/macfwd.c +++ b/app/test-pmd/macfwd.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/macswap.c b/app/test-pmd/macswap.c index 57f77003fe..cc171aed4c 100644 --- a/app/test-pmd/macswap.c +++ b/app/test-pmd/macswap.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/noisy_vnf.c b/app/test-pmd/noisy_vnf.c index 81d1187cfe..edf1f62b55 100644 --- a/app/test-pmd/noisy_vnf.c +++ b/app/test-pmd/noisy_vnf.c @@ -12,7 +12,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 1132972913..c3e46f97b9 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -13,7 +13,6 @@ #include <fcntl.h> #include <sys/types.h> -#include <sys/queue.h> #include <sys/stat.h> #include <stdint.h> diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c index 315f9286cd..c73282e991 100644 --- a/app/test-pmd/rxonly.c +++ b/app/test-pmd/rxonly.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index bb88555328..b8ad6b6f73 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -16,7 +16,6 @@ #include <errno.h> #include <stdbool.h> -#include <sys/queue.h> #include <sys/stat.h> #include <stdint.h> diff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h index e629edaa02..838b9ba291 100644 --- a/app/test-pmd/testpmd.h +++ b/app/test-pmd/testpmd.h @@ -21,7 +21,7 @@ #include <cmdline.h> #include <cmdline_parse.h> -#include <sys/queue.h> +#include <rte_bsd_queue.h> #ifdef RTE_HAS_JANSSON #include <jansson.h> #endif diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c index bdcf6ea660..2aa8aaa4c5 100644 --- a/app/test-pmd/txonly.c +++ b/app/test-pmd/txonly.c @@ -10,7 +10,6 @@ #include <unistd.h> #include <inttypes.h> -#include <sys/queue.h> #include <sys/stat.h> #include <rte_common.h> -- 2.47.2