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 <sean.morrissey@intel.com>
---
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(-)
@@ -13,6 +13,7 @@
#include <rte_debug.h>
#include <rte_eal.h>
#include <rte_log.h>
+#include <rte_string_fns.h>
#include "vm_power_cli_guest.h"
#include "parse.h"
@@ -4,9 +4,7 @@
#include <glob.h>
#include <stdio.h>
-#include <stdlib.h>
#include <unistd.h>
-#include <signal.h>
#include <limits.h>
#include <fcntl.h>
#include <string.h>
@@ -3,17 +3,10 @@
*/
#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <signal.h>
-#include <limits.h>
#include <rte_memcpy.h>
-#include <rte_memory.h>
#include <rte_string_fns.h>
#include "power_acpi_cpufreq.h"
@@ -10,10 +10,6 @@
* RTE Power Management via userspace ACPI cpufreq
*/
-#include <rte_common.h>
-#include <rte_byteorder.h>
-#include <rte_log.h>
-#include <rte_string_fns.h>
#include "rte_power.h"
/**
@@ -5,7 +5,6 @@
#ifndef _POWER_COMMON_H_
#define _POWER_COMMON_H_
-#include <inttypes.h>
#include <rte_common.h>
@@ -4,7 +4,6 @@
*/
#include <rte_memcpy.h>
-#include <rte_memory.h>
#include "power_cppc_cpufreq.h"
#include "power_common.h"
@@ -11,10 +11,6 @@
* RTE Power Management via userspace CPPC cpufreq
*/
-#include <rte_common.h>
-#include <rte_byteorder.h>
-#include <rte_log.h>
-#include <rte_string_fns.h>
#include "rte_power.h"
/**
@@ -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"
@@ -10,10 +10,6 @@
* RTE Power Management KVM VM
*/
-#include <rte_common.h>
-#include <rte_byteorder.h>
-#include <rte_log.h>
-#include <rte_string_fns.h>
#include "rte_power.h"
/**
@@ -3,20 +3,13 @@
*/
#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
-#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <signal.h>
#include <limits.h>
#include <errno.h>
-#include <inttypes.h>
#include <rte_memcpy.h>
-#include <rte_memory.h>
-#include <rte_string_fns.h>
#include "power_pstate_cpufreq.h"
#include "power_common.h"
@@ -10,10 +10,6 @@
* RTE Power Management via Intel Pstate driver
*/
-#include <rte_common.h>
-#include <rte_byteorder.h>
-#include <rte_log.h>
-#include <rte_string_fns.h>
#include "rte_power.h"
/**
@@ -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;
@@ -11,9 +11,7 @@
*/
#include <rte_common.h>
-#include <rte_byteorder.h>
#include <rte_log.h>
-#include <rte_string_fns.h>
#include <rte_power_guest_channel.h>
#ifdef __cplusplus
@@ -5,8 +5,6 @@
#include <string.h>
#include <rte_lcore.h>
-#include <rte_cycles.h>
-#include <rte_atomic.h>
#include <rte_malloc.h>
#include <inttypes.h>