[PATCH] examples/vm_power_manager: fix build with Clang 23

Thomas Monjalon thomas at monjalon.net
Thu Nov 26 22:50:08 CET 2026


A global variable was not used, raising a warning with Clang 23:

examples/vm_power_manager/oob_monitor_x86.c:14:29: error:
	variable 'g_branch_misses' set but not used

Fixes: 4b1a631b8a8a ("examples/vm_power: add oob monitoring functions")
Cc: stable at dpdk.org

Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
---
 examples/vm_power_manager/oob_monitor_x86.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/vm_power_manager/oob_monitor_x86.c b/examples/vm_power_manager/oob_monitor_x86.c
index a5b1c168c3..1bc7032a1c 100644
--- a/examples/vm_power_manager/oob_monitor_x86.c
+++ b/examples/vm_power_manager/oob_monitor_x86.c
@@ -11,7 +11,7 @@
 #include "channel_manager.h"
 
 static volatile unsigned run_loop = 1;
-static uint64_t g_branches, g_branch_misses;
+static uint64_t g_branches;
 static int g_active;
 
 void branch_monitor_exit(void)
@@ -93,7 +93,6 @@ apply_policy(int core)
 	}
 
 	g_branches = hits_diff;
-	g_branch_misses = miss_diff;
 
 	if (hits_diff < (INTERVAL*100)) {
 		/* Likely no workload running on this core. */
-- 
2.55.0



More information about the stable mailing list