[v1,17/19] table: remove unneeded header includes

Message ID 20220421190859.264174-18-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/table/rte_swx_table_learner.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Stephen Hemminger April 21, 2022, 8:09 p.m. UTC | #1
On Thu, 21 Apr 2022 19:08:57 +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/table/rte_swx_table_learner.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/lib/table/rte_swx_table_learner.c b/lib/table/rte_swx_table_learner.c
> index 15576c2aa3..f9d4d7faac 100644
> --- a/lib/table/rte_swx_table_learner.c
> +++ b/lib/table/rte_swx_table_learner.c
> @@ -6,7 +6,6 @@
>  #include <errno.h>
>  
>  #include <rte_common.h>
> -#include <rte_cycles.h>
>  #include <rte_prefetch.h>
>  
>  #include "rte_swx_table_learner.h"


This file is using rte_get_tsc_hz(), where is that getting defined?
  

Patch

diff --git a/lib/table/rte_swx_table_learner.c b/lib/table/rte_swx_table_learner.c
index 15576c2aa3..f9d4d7faac 100644
--- a/lib/table/rte_swx_table_learner.c
+++ b/lib/table/rte_swx_table_learner.c
@@ -6,7 +6,6 @@ 
 #include <errno.h>
 
 #include <rte_common.h>
-#include <rte_cycles.h>
 #include <rte_prefetch.h>
 
 #include "rte_swx_table_learner.h"