[PATCH 1/2] examples/vm_power_manager: fix includes

Stephen Hemminger stephen at networkplumber.org
Sat Aug 29 04:43:52 CEST 2026


Use include-what-you-use to get the correct set of includes
for this command.

Reported-by: Guillaume Gardet <Guillaume.Gardet at arm.com>
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 .../vm_power_manager/guest_cli/vm_power_cli_guest.c  | 12 ++++++++----
 .../vm_power_manager/guest_cli/vm_power_cli_guest.h  |  2 ++
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
index 4114593cee..cd0d87d1e7 100644
--- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
+++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c
@@ -2,21 +2,25 @@
  * Copyright(c) 2010-2014 Intel Corporation
  */
 
-
-#include <stdint.h>
 #include <string.h>
 #include <stdio.h>
-#include <termios.h>
+#include <errno.h>
+#include <stdbool.h>
+#include <inttypes.h>
+#include <stdlib.h>
 
-#include <cmdline_rdline.h>
 #include <cmdline_parse.h>
 #include <cmdline_parse_string.h>
 #include <cmdline_parse_num.h>
 #include <cmdline_socket.h>
 #include <cmdline.h>
+
+#include <rte_build_config.h>
 #include <rte_log.h>
 #include <rte_lcore.h>
 #include <rte_ethdev.h>
+#include <rte_errno.h>
+#include <rte_ether.h>
 
 #include <rte_power_cpufreq.h>
 #include <rte_power_guest_channel.h>
diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h
index b578ec0723..a93fabfa8e 100644
--- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h
+++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.h
@@ -5,6 +5,8 @@
 #ifndef VM_POWER_CLI_H_
 #define VM_POWER_CLI_H_
 
+#include <rte_common.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
-- 
2.53.0



More information about the dev mailing list