From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 94F30A0093;
	Thu, 21 Apr 2022 21:09:24 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 01AE2427EB;
	Thu, 21 Apr 2022 21:09:15 +0200 (CEST)
Received: from mga18.intel.com (mga18.intel.com [134.134.136.126])
 by mails.dpdk.org (Postfix) with ESMTP id 4EE9340042
 for <dev@dpdk.org>; Thu, 21 Apr 2022 21:09:12 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1650568152; x=1682104152;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=aq1v38ME5n0AH77W1ANTUL5Zs32BVcfMuEfrabJzlIg=;
 b=IfAk1kmp7aOiI35Da2gcdqbBwvzH4R3NxvlgfprkUvYuMTSbkxU33xSU
 g1qG7TlabfI9Gh9ahKlRI6kZ8z28zEwGrn1oRulxD9HYq78/qS/iAOAzY
 GhJb8vbJyjgUFN+3ZDUAc1dRmRFu8nXABCOBZJksVYKvv5X8xlI6ScT1i
 B/dLDoTK1RSy7ZOqPreNrQXpvdos/3BqivvRfwIL/taZ5avLWI2R7hmt/
 DSkqqqJUCHM2HARpzXZV0B1zzQwhpbXMtNiDVIL91UU1JgNsl1zxQWPl/
 OeOXKp9ckmEMIoWJ9RVxOyUcx95DAD/dh5hRSMoQjuGQOeckdioOjmQj7 w==;
X-IronPort-AV: E=McAfee;i="6400,9594,10324"; a="246354154"
X-IronPort-AV: E=Sophos;i="5.90,279,1643702400"; d="scan'208";a="246354154"
Received: from orsmga004.jf.intel.com ([10.7.209.38])
 by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 21 Apr 2022 12:09:11 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.90,279,1643702400"; d="scan'208";a="671185515"
Received: from silpixa00401215.ir.intel.com ([10.55.128.100])
 by orsmga004.jf.intel.com with ESMTP; 21 Apr 2022 12:09:10 -0700
From: Sean Morrissey <sean.morrissey@intel.com>
To: Anatoly Burakov <anatoly.burakov@intel.com>
Cc: dev@dpdk.org,
	Sean Morrissey <sean.morrissey@intel.com>
Subject: [PATCH v1 02/19] eal: remove unneeded header includes
Date: Thu, 21 Apr 2022 19:08:42 +0000
Message-Id: <20220421190859.264174-3-sean.morrissey@intel.com>
X-Mailer: git-send-email 2.25.1
In-Reply-To: <20220421190859.264174-1-sean.morrissey@intel.com>
References: <20220421190859.264174-1-sean.morrissey@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

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

Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
---
 lib/eal/common/eal_common_config.c | 1 -
 lib/eal/common/eal_common_launch.c | 1 -
 lib/eal/common/eal_common_log.c    | 1 -
 lib/eal/common/malloc_heap.h       | 1 -
 lib/eal/linux/eal.c                | 1 -
 lib/eal/linux/eal_thread.c         | 6 ------
 lib/eal/linux/eal_vfio.c           | 1 -
 lib/eal/unix/eal_filesystem.c      | 2 --
 8 files changed, 14 deletions(-)

diff --git a/lib/eal/common/eal_common_config.c b/lib/eal/common/eal_common_config.c
index 3cef43a4f7..0daf0f3188 100644
--- a/lib/eal/common/eal_common_config.c
+++ b/lib/eal/common/eal_common_config.c
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  * Copyright(c) 2020 Mellanox Technologies, Ltd
  */
-#include <string.h>
 
 #include <rte_string_fns.h>
 
diff --git a/lib/eal/common/eal_common_launch.c b/lib/eal/common/eal_common_launch.c
index 992f8e4631..462c886e30 100644
--- a/lib/eal/common/eal_common_launch.c
+++ b/lib/eal/common/eal_common_launch.c
@@ -6,7 +6,6 @@
 
 #include <rte_launch.h>
 #include <rte_eal_trace.h>
-#include <rte_atomic.h>
 #include <rte_pause.h>
 #include <rte_lcore.h>
 
diff --git a/lib/eal/common/eal_common_log.c b/lib/eal/common/eal_common_log.c
index d57dca9785..bd7b188ceb 100644
--- a/lib/eal/common/eal_common_log.c
+++ b/lib/eal/common/eal_common_log.c
@@ -13,7 +13,6 @@
 #include <sys/queue.h>
 
 #include <rte_log.h>
-#include <rte_os_shim.h>
 #include <rte_per_lcore.h>
 
 #include "eal_log.h"
diff --git a/lib/eal/common/malloc_heap.h b/lib/eal/common/malloc_heap.h
index 3b2fbc0aa0..1d5c348530 100644
--- a/lib/eal/common/malloc_heap.h
+++ b/lib/eal/common/malloc_heap.h
@@ -9,7 +9,6 @@
 #include <sys/queue.h>
 
 #include <rte_malloc.h>
-#include <rte_spinlock.h>
 
 /* Number of free lists per heap, grouped by size. */
 #define RTE_HEAP_NUM_FREELISTS  13
diff --git a/lib/eal/linux/eal.c b/lib/eal/linux/eal.c
index 1ef263434a..1390b6cf47 100644
--- a/lib/eal/linux/eal.c
+++ b/lib/eal/linux/eal.c
@@ -34,7 +34,6 @@
 #include <rte_service_component.h>
 #include <rte_log.h>
 #include <rte_string_fns.h>
-#include <rte_cpuflags.h>
 #include <rte_bus.h>
 #include <rte_version.h>
 #include <malloc_heap.h>
diff --git a/lib/eal/linux/eal_thread.c b/lib/eal/linux/eal_thread.c
index 820cc905e0..e9294127d1 100644
--- a/lib/eal/linux/eal_thread.c
+++ b/lib/eal/linux/eal_thread.c
@@ -4,20 +4,14 @@
 
 #include <errno.h>
 #include <stdio.h>
-#include <stdint.h>
 #include <unistd.h>
 #include <pthread.h>
 #include <sys/syscall.h>
 
-#include <rte_debug.h>
-#include <rte_launch.h>
-#include <rte_log.h>
 #include <rte_eal.h>
 #include <rte_lcore.h>
 #include <rte_string_fns.h>
 
-#include "eal_private.h"
-#include "eal_thread.h"
 
 /* require calling thread tid by gettid() */
 int rte_sys_gettid(void)
diff --git a/lib/eal/linux/eal_vfio.c b/lib/eal/linux/eal_vfio.c
index 549b86ae1d..c4fd7d63b0 100644
--- a/lib/eal/linux/eal_vfio.c
+++ b/lib/eal/linux/eal_vfio.c
@@ -15,7 +15,6 @@
 #include <rte_vfio.h>
 
 #include "eal_filesystem.h"
-#include "eal_memcfg.h"
 #include "eal_vfio.h"
 #include "eal_private.h"
 #include "eal_internal_cfg.h"
diff --git a/lib/eal/unix/eal_filesystem.c b/lib/eal/unix/eal_filesystem.c
index 094a2bf7e4..afbab9368a 100644
--- a/lib/eal/unix/eal_filesystem.c
+++ b/lib/eal/unix/eal_filesystem.c
@@ -10,10 +10,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
-#include <sys/types.h>
 #include <unistd.h>
 
-#include <rte_common.h>
 #include <rte_log.h>
 
 #include "eal_private.h"
-- 
2.25.1