diff mbox series

[v4,15/53] regexdev: remove unneeded header includes

Message ID 20220114162409.334437-16-sean.morrissey@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series introduce IWYU | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Sean Morrissey Jan. 14, 2022, 4:23 p.m. UTC
These header includes have been flagged by the iwyu_tool
and removed.

Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
---
 lib/regexdev/rte_regexdev.c | 2 --
 lib/regexdev/rte_regexdev.h | 3 ---
 2 files changed, 5 deletions(-)

Comments

Ori Kam Jan. 16, 2022, 7:40 a.m. UTC | #1
Hi Sean,

> -----Original Message-----
> From: Sean Morrissey <sean.morrissey@intel.com>
> Sent: Friday, January 14, 2022 6:24 PM
> Subject: [PATCH v4 15/53] regexdev: remove unneeded header includes
> 
> These header includes have been flagged by the iwyu_tool
> and removed.
> 
> Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
> ---
>  lib/regexdev/rte_regexdev.c | 2 --
>  lib/regexdev/rte_regexdev.h | 3 ---
>  2 files changed, 5 deletions(-)
> 
> diff --git a/lib/regexdev/rte_regexdev.c b/lib/regexdev/rte_regexdev.c
> index 04ab713730..02a388bc5d 100644
> --- a/lib/regexdev/rte_regexdev.c
> +++ b/lib/regexdev/rte_regexdev.c
> @@ -5,8 +5,6 @@
> 
>  #include <string.h>
> 
> -#include <rte_memory.h>
> -#include <rte_memcpy.h>
>  #include <rte_memzone.h>
>  #include <rte_string_fns.h>
> 
> diff --git a/lib/regexdev/rte_regexdev.h b/lib/regexdev/rte_regexdev.h
> index 0bac46cda9..4ba67b0c25 100644
> --- a/lib/regexdev/rte_regexdev.h
> +++ b/lib/regexdev/rte_regexdev.h
> @@ -199,11 +199,8 @@ extern "C" {
>  #endif
> 
>  #include <rte_common.h>
> -#include <rte_config.h>
>  #include <rte_dev.h>
> -#include <rte_errno.h>
>  #include <rte_mbuf.h>
> -#include <rte_memory.h>
> 
>  #define RTE_REGEXDEV_NAME_MAX_LEN RTE_DEV_NAME_MAX_LEN
> 
> --
> 2.25.1

Acked-by: Ori Kam <orika@nvidia.com>
Best,
Ori
diff mbox series

Patch

diff --git a/lib/regexdev/rte_regexdev.c b/lib/regexdev/rte_regexdev.c
index 04ab713730..02a388bc5d 100644
--- a/lib/regexdev/rte_regexdev.c
+++ b/lib/regexdev/rte_regexdev.c
@@ -5,8 +5,6 @@ 
 
 #include <string.h>
 
-#include <rte_memory.h>
-#include <rte_memcpy.h>
 #include <rte_memzone.h>
 #include <rte_string_fns.h>
 
diff --git a/lib/regexdev/rte_regexdev.h b/lib/regexdev/rte_regexdev.h
index 0bac46cda9..4ba67b0c25 100644
--- a/lib/regexdev/rte_regexdev.h
+++ b/lib/regexdev/rte_regexdev.h
@@ -199,11 +199,8 @@  extern "C" {
 #endif
 
 #include <rte_common.h>
-#include <rte_config.h>
 #include <rte_dev.h>
-#include <rte_errno.h>
 #include <rte_mbuf.h>
-#include <rte_memory.h>
 
 #define RTE_REGEXDEV_NAME_MAX_LEN RTE_DEV_NAME_MAX_LEN