From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8F3ACA00C5; Wed, 2 Feb 2022 10:50:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ADD64271D; Wed, 2 Feb 2022 10:48:45 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id C4FFC4271A for ; Wed, 2 Feb 2022 10:48:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643795323; x=1675331323; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5eFj/GDXal9jWHGoiT60Y+mVFNT2jqWSia1+NVgFuMw=; b=annjdGM1uWErjS4ZE44izuBuB/2cFlra9qy+h58p/5Jm55efRa026Chk xkjkT1nH321l7xz/JkZo4se5WB5tYRzy2fZxBFU0nHHuxMo8Okw5EqiE3 u/k4n/4bvlJ0d0gJJIB1oLWcj00SpPi5Gr7B5XsmD2twgd1m7HkWxNUjo BoRQ4w+dyRK3oVOXlFmgIzLeR2FZsryIUogWg9D0+tYKeZN7YAx6gpf8p uooHj5wFAq74xElKwsvE94owUeAyYaVgpNIdzKsv7+SfawTz5pdF1tYgG sw18+hKwCh4NM75lq1abJmCVbbHP//ZDpAiHhxr62MZTjbnDfMhoMiGWu A==; X-IronPort-AV: E=McAfee;i="6200,9189,10245"; a="247832188" X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="247832188" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 01:48:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,336,1635231600"; d="scan'208";a="538182021" Received: from silpixa00401215.ir.intel.com ([10.55.128.96]) by orsmga008.jf.intel.com with ESMTP; 02 Feb 2022 01:48:41 -0800 From: Sean Morrissey To: David Hunt Cc: dev@dpdk.org, Sean Morrissey Subject: [PATCH v6 17/50] power: remove unneeded header includes Date: Wed, 2 Feb 2022 09:47:29 +0000 Message-Id: <20220202094802.3618978-18-sean.morrissey@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220202094802.3618978-1-sean.morrissey@intel.com> References: <20220117201943.873922-1-sean.morrissey@intel.com> <20220202094802.3618978-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org These header includes have been flagged by the iwyu_tool and removed. Also added rte_string_fns.h to example app vm_power_manager for users without libbsd. Signed-off-by: Sean Morrissey Acked-by: David Hunt --- examples/vm_power_manager/guest_cli/main.c | 1 + lib/power/guest_channel.c | 2 -- lib/power/power_acpi_cpufreq.c | 7 ------- lib/power/power_acpi_cpufreq.h | 4 ---- lib/power/power_common.h | 1 - lib/power/power_cppc_cpufreq.c | 1 - lib/power/power_cppc_cpufreq.h | 4 ---- lib/power/power_kvm_vm.c | 1 - lib/power/power_kvm_vm.h | 4 ---- lib/power/power_pstate_cpufreq.c | 7 ------- lib/power/power_pstate_cpufreq.h | 4 ---- lib/power/rte_power.c | 1 - lib/power/rte_power.h | 2 -- lib/power/rte_power_empty_poll.c | 2 -- 14 files changed, 1 insertion(+), 40 deletions(-) diff --git a/examples/vm_power_manager/guest_cli/main.c b/examples/vm_power_manager/guest_cli/main.c index b8fa65ef15..9da50020ac 100644 --- a/examples/vm_power_manager/guest_cli/main.c +++ b/examples/vm_power_manager/guest_cli/main.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "vm_power_cli_guest.h" #include "parse.h" diff --git a/lib/power/guest_channel.c b/lib/power/guest_channel.c index 474dd92998..969a9e5aaa 100644 --- a/lib/power/guest_channel.c +++ b/lib/power/guest_channel.c @@ -4,9 +4,7 @@ #include #include -#include #include -#include #include #include #include diff --git a/lib/power/power_acpi_cpufreq.c b/lib/power/power_acpi_cpufreq.c index 402ed8c99b..6e57aca535 100644 --- a/lib/power/power_acpi_cpufreq.c +++ b/lib/power/power_acpi_cpufreq.c @@ -3,17 +3,10 @@ */ #include -#include -#include #include #include -#include -#include -#include -#include #include -#include #include #include "power_acpi_cpufreq.h" diff --git a/lib/power/power_acpi_cpufreq.h b/lib/power/power_acpi_cpufreq.h index 41675b9cd9..682fd9278c 100644 --- a/lib/power/power_acpi_cpufreq.h +++ b/lib/power/power_acpi_cpufreq.h @@ -10,10 +10,6 @@ * RTE Power Management via userspace ACPI cpufreq */ -#include -#include -#include -#include #include "rte_power.h" /** diff --git a/lib/power/power_common.h b/lib/power/power_common.h index 0b264edfa5..c1c7139276 100644 --- a/lib/power/power_common.h +++ b/lib/power/power_common.h @@ -5,7 +5,6 @@ #ifndef _POWER_COMMON_H_ #define _POWER_COMMON_H_ -#include #include diff --git a/lib/power/power_cppc_cpufreq.c b/lib/power/power_cppc_cpufreq.c index 25185a791c..ef06fbcd9e 100644 --- a/lib/power/power_cppc_cpufreq.c +++ b/lib/power/power_cppc_cpufreq.c @@ -4,7 +4,6 @@ */ #include -#include #include "power_cppc_cpufreq.h" #include "power_common.h" diff --git a/lib/power/power_cppc_cpufreq.h b/lib/power/power_cppc_cpufreq.h index 4e73c91b05..f4121b237e 100644 --- a/lib/power/power_cppc_cpufreq.h +++ b/lib/power/power_cppc_cpufreq.h @@ -11,10 +11,6 @@ * RTE Power Management via userspace CPPC cpufreq */ -#include -#include -#include -#include #include "rte_power.h" /** diff --git a/lib/power/power_kvm_vm.c b/lib/power/power_kvm_vm.c index ab7d4b8cee..6a8109d449 100644 --- a/lib/power/power_kvm_vm.c +++ b/lib/power/power_kvm_vm.c @@ -9,7 +9,6 @@ #include "rte_power_guest_channel.h" #include "guest_channel.h" #include "power_kvm_vm.h" -#include "power_common.h" #define FD_PATH "/dev/virtio-ports/virtio.serial.port.poweragent" diff --git a/lib/power/power_kvm_vm.h b/lib/power/power_kvm_vm.h index 9a309a300f..303fcc041b 100644 --- a/lib/power/power_kvm_vm.h +++ b/lib/power/power_kvm_vm.h @@ -10,10 +10,6 @@ * RTE Power Management KVM VM */ -#include -#include -#include -#include #include "rte_power.h" /** diff --git a/lib/power/power_pstate_cpufreq.c b/lib/power/power_pstate_cpufreq.c index 86f8a76e46..959eccffd8 100644 --- a/lib/power/power_pstate_cpufreq.c +++ b/lib/power/power_pstate_cpufreq.c @@ -3,20 +3,13 @@ */ #include -#include -#include #include -#include #include #include -#include #include #include -#include #include -#include -#include #include "power_pstate_cpufreq.h" #include "power_common.h" diff --git a/lib/power/power_pstate_cpufreq.h b/lib/power/power_pstate_cpufreq.h index 3260b32494..7bf64a518c 100644 --- a/lib/power/power_pstate_cpufreq.h +++ b/lib/power/power_pstate_cpufreq.h @@ -10,10 +10,6 @@ * RTE Power Management via Intel Pstate driver */ -#include -#include -#include -#include #include "rte_power.h" /** diff --git a/lib/power/rte_power.c b/lib/power/rte_power.c index 3cba56bac9..0a6614be77 100644 --- a/lib/power/rte_power.c +++ b/lib/power/rte_power.c @@ -10,7 +10,6 @@ #include "power_cppc_cpufreq.h" #include "power_kvm_vm.h" #include "power_pstate_cpufreq.h" -#include "power_common.h" enum power_management_env global_default_env = PM_ENV_NOT_SET; diff --git a/lib/power/rte_power.h b/lib/power/rte_power.h index c5759afa39..47345e26df 100644 --- a/lib/power/rte_power.h +++ b/lib/power/rte_power.h @@ -11,9 +11,7 @@ */ #include -#include #include -#include #include #ifdef __cplusplus diff --git a/lib/power/rte_power_empty_poll.c b/lib/power/rte_power_empty_poll.c index c4b5de9601..dca88555aa 100644 --- a/lib/power/rte_power_empty_poll.c +++ b/lib/power/rte_power_empty_poll.c @@ -5,8 +5,6 @@ #include #include -#include -#include #include #include -- 2.25.1