[v5,07/50] timer: remove unneeded header includes

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

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Sean Morrissey Jan. 17, 2022, 8:19 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/timer/rte_timer.c | 7 -------
 1 file changed, 7 deletions(-)
  

Comments

Carrillo, Erik G Jan. 18, 2022, 7:43 p.m. UTC | #1
> -----Original Message-----
> From: Morrissey, Sean <sean.morrissey@intel.com>
> Sent: Monday, January 17, 2022 2:19 PM
> To: Robert Sanford <rsanford@akamai.com>; Carrillo, Erik G
> <erik.g.carrillo@intel.com>
> Cc: dev@dpdk.org; Morrissey, Sean <sean.morrissey@intel.com>
> Subject: [PATCH v5 07/50] timer: 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>

Thanks, Sean.

Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
  

Patch

diff --git a/lib/timer/rte_timer.c b/lib/timer/rte_timer.c
index 6d19ce469b..b3f3e229f6 100644
--- a/lib/timer/rte_timer.c
+++ b/lib/timer/rte_timer.c
@@ -2,29 +2,22 @@ 
  * Copyright(c) 2010-2014 Intel Corporation
  */
 
-#include <string.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <stdbool.h>
-#include <inttypes.h>
 #include <assert.h>
 #include <sys/queue.h>
 
 #include <rte_common.h>
 #include <rte_cycles.h>
 #include <rte_eal_memconfig.h>
-#include <rte_per_lcore.h>
 #include <rte_memory.h>
-#include <rte_launch.h>
-#include <rte_eal.h>
 #include <rte_lcore.h>
 #include <rte_branch_prediction.h>
 #include <rte_spinlock.h>
 #include <rte_random.h>
 #include <rte_pause.h>
 #include <rte_memzone.h>
-#include <rte_malloc.h>
-#include <rte_errno.h>
 
 #include "rte_timer.h"