From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>,
Guillaume Gardet <Guillaume.Gardet@arm.com>,
Anatoly Burakov <anatoly.burakov@intel.com>,
Sivaprasad Tummala <sivaprasad.tummala@amd.com>
Subject: [PATCH 1/2] examples/vm_power_manager: fix includes
Date: Fri, 28 Aug 2026 19:43:52 -0700 [thread overview]
Message-ID: <20260829024455.1557201-1-stephen@networkplumber.org> (raw)
In-Reply-To: <20260828215350.2861715-1-thomas.petazzoni@bootlin.com>
Use include-what-you-use to get the correct set of includes
for this command.
Reported-by: Guillaume Gardet <Guillaume.Gardet@arm.com>
Signed-off-by: Stephen Hemminger <stephen@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
next prev parent reply other threads:[~2026-08-29 2:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 21:53 [PATCH RESEND] examples/vm_power_manager: add missing <stdlib.h> header include for strtol Thomas Petazzoni
2026-08-28 22:18 ` Stephen Hemminger
2026-08-29 2:43 ` Stephen Hemminger [this message]
2026-08-29 2:43 ` [PATCH 2/2] examples/vm_power_manager: fix vCPU number parsing Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260829024455.1557201-1-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=Guillaume.Gardet@arm.com \
--cc=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
--cc=sivaprasad.tummala@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox