Skip to contentSkip to conversation

introduce IWYU

PATCH Superseded Sean Morrissey 17 participants 368 messages Oct 4, 2021 – Feb 22, 2022 Page 4 of 4

lore
Share & tools
lore
#352 lore raw

PATCH v9 36/50 gro: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/gro/gro_tcp4.c       | 1 -
 lib/gro/gro_tcp4.h       | 2 --
 lib/gro/gro_udp4.c       | 1 -
 lib/gro/gro_udp4.h       | 2 --
 lib/gro/gro_vxlan_tcp4.c | 1 -
 lib/gro/gro_vxlan_udp4.c | 1 -
 lib/gro/rte_gro.c        | 1 -
 7 files changed, 9 deletions(-)
lib/gro/gro_tcp4.c +0 -1
index aff22178e3..7498c66141 100644
@@ -4,7 +4,6 @@
 
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
-#include <rte_cycles.h>
 #include <rte_ethdev.h>
 
 #include "gro_tcp4.h"
lib/gro/gro_tcp4.h +0 -2
index bb875a5ef0..212f97a042 100644
@@ -5,9 +5,7 @@
 #ifndef _GRO_TCP4_H_
 #define _GRO_TCP4_H_
 
-#include <rte_ip.h>
 #include <rte_tcp.h>
-#include <rte_vxlan.h>
 
 #define INVALID_ARRAY_INDEX 0xffffffffUL
 #define GRO_TCP4_TBL_MAX_ITEM_NUM (1024UL * 1024UL)
lib/gro/gro_udp4.c +0 -1
index e78dda7874..dd71135ada 100644
@@ -4,7 +4,6 @@
 
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
-#include <rte_cycles.h>
 #include <rte_ethdev.h>
 
 #include "gro_udp4.h"
lib/gro/gro_udp4.h +0 -2
index d38b393f79..6467d7bc3b 100644
@@ -6,8 +6,6 @@
 #define _GRO_UDP4_H_
 
 #include <rte_ip.h>
-#include <rte_udp.h>
-#include <rte_vxlan.h>
 
 #define INVALID_ARRAY_INDEX 0xffffffffUL
 #define GRO_UDP4_TBL_MAX_ITEM_NUM (1024UL * 1024UL)
lib/gro/gro_vxlan_tcp4.c +0 -1
index 2005899afe..3be4deb7c7 100644
@@ -4,7 +4,6 @@
 
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
-#include <rte_cycles.h>
 #include <rte_ethdev.h>
 #include <rte_udp.h>
 
lib/gro/gro_vxlan_udp4.c +0 -1
index 4767c910bb..b78a7ae89e 100644
@@ -4,7 +4,6 @@
 
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
-#include <rte_cycles.h>
 #include <rte_ethdev.h>
 #include <rte_udp.h>
 
lib/gro/rte_gro.c +0 -1
index 8ca4da67e9..6f7dd4d709 100644
@@ -3,7 +3,6 @@
  */
 
 #include <rte_malloc.h>
-#include <rte_mbuf.h>
 #include <rte_cycles.h>
 #include <rte_ethdev.h>
 
Signature · 1 line
2.25.1
#353 lore raw

PATCH v9 37/50 graph: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/graph/graph_debug.c    | 2 --
 lib/graph/graph_ops.c      | 1 -
 lib/graph/graph_populate.c | 2 --
 lib/graph/node.c           | 1 -
 4 files changed, 6 deletions(-)
lib/graph/graph_debug.c +0 -2
index f8aea16acb..b84412f5dd 100644
@@ -2,8 +2,6 @@
  * Copyright(C) 2020 Marvell International Ltd.
  */
 
-#include <rte_common.h>
-#include <rte_debug.h>
 
 #include "graph_private.h"
 
lib/graph/graph_ops.c +0 -1
index 3355953118..20db58d84e 100644
@@ -5,7 +5,6 @@
 #include <stdbool.h>
 #include <string.h>
 
-#include <rte_common.h>
 #include <rte_errno.h>
 
 #include "graph_private.h"
lib/graph/graph_populate.c +0 -2
index 093512efab..102fd6c29b 100644
@@ -2,8 +2,6 @@
  * Copyright(C) 2020 Marvell International Ltd.
  */
 
-#include <fnmatch.h>
-#include <stdbool.h>
 
 #include <rte_common.h>
 #include <rte_errno.h>
lib/graph/node.c +0 -1
index 86ec4316f9..79230035a2 100644
@@ -8,7 +8,6 @@
 
 #include <rte_common.h>
 #include <rte_debug.h>
-#include <rte_eal.h>
 #include <rte_errno.h>
 #include <rte_string_fns.h>
 
Signature · 1 line
2.25.1
#354 lore raw

PATCH v9 38/50 gpudev: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/gpudev/gpudev.c | 1 -
 1 file changed, 1 deletion(-)
lib/gpudev/gpudev.c +0 -1
index ce92d63257..55a087bfb6 100644
@@ -4,7 +4,6 @@
 
 #include <rte_eal.h>
 #include <rte_tailq.h>
-#include <rte_rwlock.h>
 #include <rte_string_fns.h>
 #include <rte_memzone.h>
 #include <rte_malloc.h>
Signature · 1 line
2.25.1
#355 lore raw

PATCH v9 39/50 flow_classify: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/flow_classify/rte_flow_classify.c       | 3 ---
 lib/flow_classify/rte_flow_classify.h       | 4 ----
 lib/flow_classify/rte_flow_classify_parse.c | 1 -
 lib/flow_classify/rte_flow_classify_parse.h | 1 -
 4 files changed, 9 deletions(-)
lib/flow_classify/rte_flow_classify.c +0 -3
index d3ba2ed227..e3667306e5 100644
@@ -3,12 +3,9 @@
  */
 
 #include <rte_string_fns.h>
-#include <rte_compat.h>
 #include <rte_flow_classify.h>
 #include "rte_flow_classify_parse.h"
-#include <rte_flow_driver.h>
 #include <rte_table_acl.h>
-#include <stdbool.h>
 
 static uint32_t unique_id = 1;
 
lib/flow_classify/rte_flow_classify.h +0 -4
index 82ea92b6a6..39512b6206 100644
@@ -45,11 +45,7 @@
 
 #include <rte_compat.h>
 #include <rte_common.h>
-#include <rte_ethdev.h>
-#include <rte_ether.h>
 #include <rte_flow.h>
-#include <rte_acl.h>
-#include <rte_table_acl.h>
 
 #ifdef __cplusplus
 extern "C" {
lib/flow_classify/rte_flow_classify_parse.c +0 -1
index 465330291f..345d129d35 100644
@@ -4,7 +4,6 @@
 
 #include <rte_flow_classify.h>
 #include "rte_flow_classify_parse.h"
-#include <rte_flow_driver.h>
 
 struct classify_valid_pattern {
 	enum rte_flow_item_type *items;
lib/flow_classify/rte_flow_classify_parse.h +0 -1
index 365a07bd6d..7943efc0d4 100644
@@ -6,7 +6,6 @@
 #define _RTE_FLOW_CLASSIFY_PARSE_H_
 
 #include <rte_ethdev.h>
-#include <rte_ether.h>
 #include <rte_flow.h>
 #include <stdbool.h>
 
Signature · 1 line
2.25.1
#356 lore raw

PATCH v9 40/50 fib: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/fib/dir24_8.c  | 4 ----
 lib/fib/rte_fib.c  | 2 --
 lib/fib/rte_fib.h  | 1 -
 lib/fib/rte_fib6.c | 2 --
 lib/fib/rte_fib6.h | 1 -
 lib/fib/trie.c     | 5 -----
 lib/fib/trie.h     | 2 --
 7 files changed, 17 deletions(-)
lib/fib/dir24_8.c +0 -4
index bb3bc9753b..a8ba4f64ca 100644
@@ -4,15 +4,11 @@
  */
 
 #include <stdint.h>
-#include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
-#include <inttypes.h>
 
 #include <rte_debug.h>
 #include <rte_malloc.h>
 #include <rte_errno.h>
-#include <rte_memory.h>
 #include <rte_vect.h>
 
 #include <rte_rib.h>
lib/fib/rte_fib.c +0 -2
index 0cced97a77..8af4c40919 100644
@@ -6,11 +6,9 @@
 #include <stdint.h>
 #include <string.h>
 
-#include <rte_eal.h>
 #include <rte_eal_memconfig.h>
 #include <rte_errno.h>
 #include <rte_malloc.h>
-#include <rte_rwlock.h>
 #include <rte_string_fns.h>
 #include <rte_tailq.h>
 
lib/fib/rte_fib.h +0 -1
index e592d3251a..90f28b7e11 100644
@@ -17,7 +17,6 @@
 
 #include <stdint.h>
 
-#include <rte_compat.h>
 
 #ifdef __cplusplus
 extern "C" {
lib/fib/rte_fib6.c +0 -2
index eebee297d6..4b8e22b142 100644
@@ -6,11 +6,9 @@
 #include <stdint.h>
 #include <string.h>
 
-#include <rte_eal.h>
 #include <rte_eal_memconfig.h>
 #include <rte_tailq.h>
 #include <rte_errno.h>
-#include <rte_rwlock.h>
 #include <rte_malloc.h>
 #include <rte_string_fns.h>
 
lib/fib/rte_fib6.h +0 -1
index cb133719e1..62a425d9af 100644
@@ -17,7 +17,6 @@
 
 #include <stdint.h>
 
-#include <rte_compat.h>
 
 #ifdef __cplusplus
 extern "C" {
lib/fib/trie.c +0 -5
index 044095bf03..3e780afdaf 100644
@@ -4,16 +4,11 @@
  */
 
 #include <stdint.h>
-#include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
-#include <inttypes.h>
 
 #include <rte_debug.h>
 #include <rte_malloc.h>
 #include <rte_errno.h>
-#include <rte_memory.h>
-#include <rte_vect.h>
 
 #include <rte_rib6.h>
 #include <rte_fib6.h>
lib/fib/trie.h +0 -2
index 9fd15ae79f..3cf161ae25 100644
@@ -10,8 +10,6 @@
  * @file
  * RTE IPv6 Longest Prefix Match (LPM)
  */
-#include <rte_prefetch.h>
-#include <rte_branch_prediction.h>
 
 /* @internal Total number of tbl24 entries. */
 #define TRIE_TBL24_NUM_ENT	(1 << 24)
Signature · 1 line
2.25.1
#357 lore raw

PATCH v9 41/50 eventdev: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/eventdev/rte_event_ring.c          |  6 ------
 lib/eventdev/rte_event_ring.h          |  2 --
 lib/eventdev/rte_event_timer_adapter.c |  5 -----
 lib/eventdev/rte_event_timer_adapter.h |  2 --
 lib/eventdev/rte_eventdev.c            | 11 -----------
 lib/eventdev/rte_eventdev.h            |  2 --
 6 files changed, 28 deletions(-)
lib/eventdev/rte_event_ring.c +0 -6
index d27e23901d..c070715148 100644
@@ -3,13 +3,7 @@
  * Copyright(c) 2019 Arm Limited
  */
 
-#include <sys/queue.h>
-#include <string.h>
 
-#include <rte_tailq.h>
-#include <rte_memzone.h>
-#include <rte_rwlock.h>
-#include <rte_eal_memconfig.h>
 #include "rte_event_ring.h"
 
 int
lib/eventdev/rte_event_ring.h +0 -2
index c0861b0ec2..0a54f7fde2 100644
@@ -17,8 +17,6 @@
 #include <stdint.h>
 
 #include <rte_common.h>
-#include <rte_memory.h>
-#include <rte_malloc.h>
 #include <rte_ring.h>
 #include <rte_ring_elem.h>
 #include "rte_eventdev.h"
lib/eventdev/rte_event_timer_adapter.c +0 -5
index 9dad170b5a..7dc39386c9 100644
@@ -6,19 +6,14 @@
 #include <string.h>
 #include <inttypes.h>
 #include <stdbool.h>
-#include <sys/queue.h>
 
 #include <rte_memzone.h>
-#include <rte_memory.h>
-#include <rte_dev.h>
 #include <rte_errno.h>
 #include <rte_malloc.h>
-#include <rte_ring.h>
 #include <rte_mempool.h>
 #include <rte_common.h>
 #include <rte_timer.h>
 #include <rte_service_component.h>
-#include <rte_cycles.h>
 
 #include "event_timer_adapter_pmd.h"
 #include "eventdev_pmd.h"
lib/eventdev/rte_event_timer_adapter.h +0 -2
index e68d02da72..4c91e5516a 100644
@@ -111,8 +111,6 @@
 extern "C" {
 #endif
 
-#include <rte_spinlock.h>
-#include <rte_memory.h>
 
 #include "rte_eventdev.h"
 #include "rte_eventdev_trace_fp.h"
lib/eventdev/rte_eventdev.c +0 -11
index 6988bf186e..532a253553 100644
@@ -6,26 +6,15 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <stdarg.h>
 #include <errno.h>
 #include <stdint.h>
 #include <inttypes.h>
-#include <sys/types.h>
-#include <sys/queue.h>
 
 #include <rte_string_fns.h>
-#include <rte_byteorder.h>
 #include <rte_log.h>
-#include <rte_debug.h>
 #include <rte_dev.h>
-#include <rte_memory.h>
-#include <rte_memcpy.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>
-#include <rte_per_lcore.h>
-#include <rte_lcore.h>
-#include <rte_atomic.h>
-#include <rte_branch_prediction.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 #include <rte_errno.h>
lib/eventdev/rte_eventdev.h +0 -2
index 25fb7c89dd..67c4a5e036 100644
@@ -211,10 +211,8 @@ extern "C" {
 #endif
 
 #include <rte_common.h>
-#include <rte_config.h>
 #include <rte_errno.h>
 #include <rte_mbuf_pool_ops.h>
-#include <rte_memory.h>
 #include <rte_mempool.h>
 
 #include "rte_eventdev_trace_fp.h"
Signature · 1 line
2.25.1
#358 lore raw

PATCH v9 42/50 efd: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/efd/rte_efd.c | 3 ---
 1 file changed, 3 deletions(-)
lib/efd/rte_efd.c +0 -3
index 86ef46863c..560cd78961 100644
@@ -6,7 +6,6 @@
 #include <stdint.h>
 #include <inttypes.h>
 #include <errno.h>
-#include <stdarg.h>
 #include <sys/queue.h>
 
 #include <rte_string_fns.h>
@@ -21,11 +20,9 @@
 #include <rte_jhash.h>
 #include <rte_hash_crc.h>
 #include <rte_tailq.h>
-#include <rte_vect.h>
 
 #include "rte_efd.h"
 #if defined(RTE_ARCH_X86)
-#include "rte_efd_x86.h"
 #elif defined(RTE_ARCH_ARM64)
 #include "rte_efd_arm64.h"
 #endif
Signature · 1 line
2.25.1
#359 lore raw

PATCH v9 43/50 dmadev: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/dmadev/rte_dmadev.h | 1 -
 1 file changed, 1 deletion(-)
lib/dmadev/rte_dmadev.h +0 -1
index 4abe79c536..ad9e7a0975 100644
@@ -149,7 +149,6 @@
 #include <rte_bitops.h>
 #include <rte_common.h>
 #include <rte_compat.h>
-#include <rte_dev.h>
 
 #ifdef __cplusplus
 extern "C" {
Signature · 1 line
2.25.1
#360 lore raw

PATCH v9 44/50 distributor: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/distributor/rte_distributor.c           | 2 --
 lib/distributor/rte_distributor_match_sse.c | 2 --
 lib/distributor/rte_distributor_single.c    | 2 --
 3 files changed, 6 deletions(-)
lib/distributor/rte_distributor.c +0 -2
index c210cf86bd..3035b7a999 100644
@@ -6,7 +6,6 @@
 #include <sys/queue.h>
 #include <string.h>
 #include <rte_mbuf.h>
-#include <rte_memory.h>
 #include <rte_cycles.h>
 #include <rte_memzone.h>
 #include <rte_errno.h>
@@ -14,7 +13,6 @@
 #include <rte_eal_memconfig.h>
 #include <rte_pause.h>
 #include <rte_tailq.h>
-#include <rte_vect.h>
 
 #include "rte_distributor.h"
 #include "rte_distributor_single.h"
lib/distributor/rte_distributor_match_sse.c +0 -2
index e3b3b79264..11d8819278 100644
@@ -3,10 +3,8 @@
  */
 
 #include <rte_mbuf.h>
-#include "rte_distributor.h"
 #include "distributor_private.h"
 #include "smmintrin.h"
-#include "nmmintrin.h"
 
 
 void
lib/distributor/rte_distributor_single.c +0 -2
index b653620688..de90aa8bb5 100644
@@ -4,9 +4,7 @@
 
 #include <stdio.h>
 #include <sys/queue.h>
-#include <string.h>
 #include <rte_mbuf.h>
-#include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_errno.h>
 #include <rte_string_fns.h>
Signature · 1 line
2.25.1
#361 lore raw

PATCH v9 45/50 compressdev: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/compressdev/rte_comp.c            | 1 -
 lib/compressdev/rte_comp.h            | 1 -
 lib/compressdev/rte_compressdev.c     | 1 -
 lib/compressdev/rte_compressdev.h     | 1 -
 lib/compressdev/rte_compressdev_pmd.h | 2 --
 5 files changed, 6 deletions(-)
lib/compressdev/rte_comp.c +0 -1
index 3b0e46f96e..320c6dab92 100644
@@ -3,7 +3,6 @@
  */
 
 #include "rte_comp.h"
-#include "rte_compressdev.h"
 #include "rte_compressdev_internal.h"
 
 const char *
lib/compressdev/rte_comp.h +0 -1
index 95306c5d03..cdb55e5887 100644
@@ -16,7 +16,6 @@
 extern "C" {
 #endif
 
-#include <rte_mempool.h>
 #include <rte_mbuf.h>
 
 /**
lib/compressdev/rte_compressdev.c +0 -1
index d4f7d4d3da..22c438f2dd 100644
@@ -3,7 +3,6 @@
  */
 
 #include <string.h>
-#include <stdarg.h>
 #include <stdio.h>
 #include <inttypes.h>
 
lib/compressdev/rte_compressdev.h +0 -1
index 2840c27c6c..aa865c4c03 100644
@@ -21,7 +21,6 @@
 extern "C" {
 #endif
 
-#include <rte_common.h>
 
 #include "rte_comp.h"
 
lib/compressdev/rte_compressdev_pmd.h +0 -2
index f9a42d1f05..9fabc399c5 100644
@@ -19,8 +19,6 @@ extern "C" {
 
 #include <string.h>
 
-#include <rte_dev.h>
-#include <rte_common.h>
 
 #include "rte_compressdev.h"
 #include "rte_compressdev_internal.h"
Signature · 1 line
2.25.1
#362 lore raw

PATCH v9 46/50 cmdline: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/cmdline/cmdline.c                | 2 --
 lib/cmdline/cmdline_parse.c          | 3 ---
 lib/cmdline/cmdline_parse_portlist.c | 3 ---
 lib/cmdline/cmdline_parse_string.c   | 4 ----
 lib/cmdline/cmdline_rdline.c         | 2 --
 lib/cmdline/cmdline_vt100.c          | 3 ---
 6 files changed, 17 deletions(-)
lib/cmdline/cmdline.c +0 -2
index 8f1854cb0b..e1009ba4c4 100644
@@ -9,8 +9,6 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <inttypes.h>
-#include <fcntl.h>
 #include <errno.h>
 
 #include <rte_string_fns.h>
lib/cmdline/cmdline_parse.c +0 -3
index f5cc934782..349ec87bd7 100644
@@ -5,11 +5,8 @@
  */
 
 #include <stdio.h>
-#include <stdarg.h>
 #include <errno.h>
 #include <string.h>
-#include <inttypes.h>
-#include <ctype.h>
 
 #include <rte_string_fns.h>
 
lib/cmdline/cmdline_parse_portlist.c +0 -3
index e1aa07be4b..2e2294553a 100644
@@ -6,11 +6,8 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <inttypes.h>
-#include <ctype.h>
 #include <string.h>
 #include <errno.h>
-#include <stdarg.h>
 
 #include <rte_string_fns.h>
 #include "cmdline_parse.h"
lib/cmdline/cmdline_parse_string.c +0 -4
index 9cf41d0f76..d756638905 100644
@@ -5,11 +5,7 @@
  */
 
 #include <stdio.h>
-#include <inttypes.h>
-#include <ctype.h>
 #include <string.h>
-#include <stdarg.h>
-#include <errno.h>
 #include <rte_string_fns.h>
 
 #include "cmdline_parse.h"
lib/cmdline/cmdline_rdline.c +0 -2
index d92b1cda53..5cf723a012 100644
@@ -6,9 +6,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
-#include <stdint.h>
 #include <string.h>
-#include <stdarg.h>
 #include <errno.h>
 #include <ctype.h>
 
lib/cmdline/cmdline_vt100.c +0 -3
index bb968dd5fa..4c9a46c953 100644
@@ -4,12 +4,9 @@
  * All rights reserved.
  */
 
-#include <stdlib.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>
-#include <stdarg.h>
-#include <ctype.h>
 
 #include "cmdline_vt100.h"
 
Signature · 1 line
2.25.1
#363 lore raw

PATCH v9 47/50 bpf: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/bpf/bpf.c          |  4 ----
 lib/bpf/bpf_exec.c     |  6 ------
 lib/bpf/bpf_jit_x86.c  |  5 -----
 lib/bpf/bpf_load.c     |  8 --------
 lib/bpf/bpf_pkt.c      | 12 ------------
 lib/bpf/bpf_validate.c |  3 ---
 6 files changed, 38 deletions(-)
lib/bpf/bpf.c +0 -4
index 0caad2a8f0..1e1dd42a58 100644
@@ -2,15 +2,11 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <stdarg.h>
 #include <stdio.h>
-#include <string.h>
 #include <errno.h>
 #include <stdint.h>
-#include <inttypes.h>
 
 #include <rte_common.h>
-#include <rte_eal.h>
 
 #include "bpf_impl.h"
 
lib/bpf/bpf_exec.c +0 -6
index b921112feb..09f4a9a571 100644
@@ -2,18 +2,12 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <stdarg.h>
 #include <stdio.h>
-#include <string.h>
-#include <errno.h>
 #include <stdint.h>
-#include <inttypes.h>
 
 #include <rte_common.h>
 #include <rte_log.h>
 #include <rte_debug.h>
-#include <rte_memory.h>
-#include <rte_eal.h>
 #include <rte_byteorder.h>
 
 #include "bpf_impl.h"
lib/bpf/bpf_jit_x86.c +0 -5
index 518513376a..c1a30e0386 100644
@@ -2,17 +2,12 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <stdarg.h>
 #include <errno.h>
 #include <stdint.h>
-#include <inttypes.h>
 
 #include <rte_common.h>
 #include <rte_log.h>
 #include <rte_debug.h>
-#include <rte_memory.h>
-#include <rte_eal.h>
-#include <rte_byteorder.h>
 
 #include "bpf_impl.h"
 
lib/bpf/bpf_load.c +0 -8
index 272f2ba11b..0c4ac7be6c 100644
@@ -2,20 +2,12 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 #include <stdint.h>
-#include <unistd.h>
-#include <inttypes.h>
 
-#include <rte_common.h>
 #include <rte_log.h>
-#include <rte_debug.h>
-#include <rte_memory.h>
-#include <rte_eal.h>
-#include <rte_byteorder.h>
 #include <rte_errno.h>
 
 #include "bpf_impl.h"
lib/bpf/bpf_pkt.c +0 -12
index af422afc07..ffd2db7840 100644
@@ -2,28 +2,16 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 #include <stdint.h>
-#include <unistd.h>
-#include <inttypes.h>
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
 #include <sys/queue.h>
 
 #include <rte_common.h>
-#include <rte_byteorder.h>
 #include <rte_malloc.h>
 #include <rte_log.h>
-#include <rte_debug.h>
-#include <rte_cycles.h>
-#include <rte_eal.h>
-#include <rte_per_lcore.h>
-#include <rte_lcore.h>
 #include <rte_atomic.h>
 #include <rte_mbuf.h>
 #include <rte_ethdev.h>
lib/bpf/bpf_validate.c +0 -3
index 09331258eb..9ff86fc970 100644
@@ -2,7 +2,6 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
@@ -10,8 +9,6 @@
 #include <inttypes.h>
 
 #include <rte_common.h>
-#include <rte_eal.h>
-#include <rte_byteorder.h>
 
 #include "bpf_impl.h"
 
Signature · 1 line
2.25.1
#364 lore raw

PATCH v9 48/50 bbdev: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/bbdev/rte_bbdev.c | 4 ----
 lib/bbdev/rte_bbdev.h | 4 ----
 2 files changed, 8 deletions(-)
lib/bbdev/rte_bbdev.c +0 -4
index 7f353d4f7e..aaee7b7872 100644
@@ -6,19 +6,15 @@
 #include <string.h>
 #include <stdbool.h>
 
-#include <rte_compat.h>
 #include <rte_common.h>
 #include <rte_errno.h>
 #include <rte_log.h>
-#include <rte_debug.h>
 #include <rte_eal.h>
 #include <rte_malloc.h>
 #include <rte_mempool.h>
 #include <rte_memzone.h>
 #include <rte_lcore.h>
-#include <rte_dev.h>
 #include <rte_spinlock.h>
-#include <rte_tailq.h>
 #include <rte_interrupts.h>
 
 #include "rte_bbdev_op.h"
lib/bbdev/rte_bbdev.h +0 -4
index 1dbcf73b0e..b88c88167e 100644
@@ -26,12 +26,8 @@ extern "C" {
 
 #include <stdint.h>
 #include <stdbool.h>
-#include <string.h>
 
-#include <rte_compat.h>
-#include <rte_bus.h>
 #include <rte_cpuflags.h>
-#include <rte_memory.h>
 
 #include "rte_bbdev_op.h"
 
Signature · 1 line
2.25.1
#365 lore raw

PATCH v9 49/50 cryptodev: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/cryptodev/cryptodev_pmd.h |  4 ----
 lib/cryptodev/rte_cryptodev.c | 11 -----------
 lib/cryptodev/rte_cryptodev.h |  2 --
 3 files changed, 17 deletions(-)
lib/cryptodev/cryptodev_pmd.h +0 -4
index d91902f6e0..8bbb9caeae 100644
@@ -15,11 +15,7 @@
 
 #include <string.h>
 
-#include <rte_config.h>
-#include <rte_dev.h>
 #include <rte_malloc.h>
-#include <rte_mbuf.h>
-#include <rte_mempool.h>
 #include <rte_log.h>
 #include <rte_common.h>
 
lib/cryptodev/rte_cryptodev.c +0 -11
index 727d271fb9..321d2171d4 100644
@@ -2,36 +2,25 @@
  * Copyright(c) 2015-2020 Intel Corporation
  */
 
-#include <sys/types.h>
 #include <sys/queue.h>
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <stdarg.h>
 #include <errno.h>
 #include <stdint.h>
 #include <inttypes.h>
 
-#include <rte_byteorder.h>
 #include <rte_log.h>
 #include <rte_debug.h>
 #include <rte_dev.h>
-#include <rte_interrupts.h>
 #include <rte_memory.h>
 #include <rte_memcpy.h>
 #include <rte_memzone.h>
-#include <rte_launch.h>
-#include <rte_tailq.h>
 #include <rte_eal.h>
-#include <rte_per_lcore.h>
-#include <rte_lcore.h>
-#include <rte_atomic.h>
-#include <rte_branch_prediction.h>
 #include <rte_common.h>
 #include <rte_mempool.h>
 #include <rte_malloc.h>
-#include <rte_mbuf.h>
 #include <rte_errno.h>
 #include <rte_spinlock.h>
 #include <rte_string_fns.h>
lib/cryptodev/rte_cryptodev.h +0 -2
index 19e2e70287..45d33f4a50 100644
@@ -20,9 +20,7 @@ extern "C" {
 
 #include "rte_kvargs.h"
 #include "rte_crypto.h"
-#include "rte_dev.h"
 #include <rte_common.h>
-#include <rte_config.h>
 #include <rte_rcu_qsbr.h>
 
 #include "rte_cryptodev_trace_fp.h"
Signature · 1 line
2.25.1
#366 lore raw

PATCH v9 50/50 acl: remove unneeded header includes

In reply to Sean Morrissey

These header includes have been flagged by the iwyu_tool and removed.

---
 lib/acl/rte_acl.c | 1 -
 1 file changed, 1 deletion(-)
lib/acl/rte_acl.c +0 -1
index 4e693b2488..a61c3ba188 100644
@@ -6,7 +6,6 @@
 #include <rte_string_fns.h>
 #include <rte_acl.h>
 #include <rte_tailq.h>
-#include <rte_vect.h>
 
 #include "acl.h"
 
Signature · 1 line
2.25.1