[v1,16/19] stack: remove unneeded header includes

Message ID 20220421190859.264174-17-sean.morrissey@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series remove IWYU flagged headers |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Sean Morrissey April 21, 2022, 7:08 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/stack/rte_stack.h | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Stephen Hemminger April 21, 2022, 8:10 p.m. UTC | #1
On Thu, 21 Apr 2022 19:08:56 +0000
Sean Morrissey <sean.morrissey@intel.com> wrote:

> These header includes have been flagged by the iwyu_tool
> and removed.
> 
> Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
> ---
>  lib/stack/rte_stack.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/lib/stack/rte_stack.h b/lib/stack/rte_stack.h
> index 91fc570767..af8c3804f3 100644
> --- a/lib/stack/rte_stack.h
> +++ b/lib/stack/rte_stack.h
> @@ -22,7 +22,6 @@ extern "C" {
>  #include <rte_debug.h>
>  #include <rte_errno.h>
>  #include <rte_memzone.h>
> -#include <rte_spinlock.h>

This file is using rte_spinlock_t so where is it getting defined?
  

Patch

diff --git a/lib/stack/rte_stack.h b/lib/stack/rte_stack.h
index 91fc570767..af8c3804f3 100644
--- a/lib/stack/rte_stack.h
+++ b/lib/stack/rte_stack.h
@@ -22,7 +22,6 @@  extern "C" {
 #include <rte_debug.h>
 #include <rte_errno.h>
 #include <rte_memzone.h>
-#include <rte_spinlock.h>
 
 #define RTE_TAILQ_STACK_NAME "RTE_STACK"
 #define RTE_STACK_MZ_PREFIX "STK_"