intel-lpmd/0002-wlt_proxy-state_manager-Fix-Werror-switch.patch
Kate Hsuan 592a90bb8e Update to the upstream version 0.0.9
Update to the upstream version 0.0.9. This work included the fix patches
to resolve the unused variables and functions issue.

Resolves: RHEL-87018 RHEL-87020
2025-05-05 15:17:19 +08:00

27 lines
775 B
Diff

From 311b7929d4c821630fabf5293ec5b4bec5411162 Mon Sep 17 00:00:00 2001
From: Kate Hsuan <hpa@redhat.com>
Date: Fri, 2 May 2025 16:49:42 +0800
Subject: [PATCH 2/4] wlt_proxy: state_manager: Fix -Werror=switch
Fix the swicth expression to avoid -Werror=switch warnning.
---
src/wlt_proxy/state_manager.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/wlt_proxy/state_manager.c b/src/wlt_proxy/state_manager.c
index 7841135..9753442 100644
--- a/src/wlt_proxy/state_manager.c
+++ b/src/wlt_proxy/state_manager.c
@@ -285,6 +285,8 @@ int staytime_to_staycount(enum state_idx state)
case PERF_MODE:
stay_count = (int)PERF_MODE_STAY/get_poll_ms(PERF_MODE);
break;
+ default:
+ break;
}
return stay_count;
}
--
2.49.0