Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] tools/power turbostat: Fix build with musl
@ 2025-06-13 16:54 Calvin Owens
  2025-06-13 17:45 ` Artem Bityutskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Calvin Owens @ 2025-06-13 16:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-pm, Len Brown

    turbostat.c: In function 'parse_int_file':
    turbostat.c:5567:19: error: 'PATH_MAX' undeclared (first use in this function)
     5567 |         char path[PATH_MAX];
          |                   ^~~~~~~~

    turbostat.c: In function 'probe_graphics':
    turbostat.c:6787:19: error: 'PATH_MAX' undeclared (first use in this function)
     6787 |         char path[PATH_MAX];
          |                   ^~~~~~~~

Signed-off-by: Calvin Owens <calvin@wbinvd.org>
---
 tools/power/x86/turbostat/turbostat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 0170d3cc6819..925556b90770 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -67,6 +67,7 @@
 #include <stdbool.h>
 #include <assert.h>
 #include <linux/kernel.h>
+#include <limits.h>
 
 #define UNUSED(x) (void)(x)
 
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-06-18 14:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-13 16:54 [PATCH] tools/power turbostat: Fix build with musl Calvin Owens
2025-06-13 17:45 ` Artem Bityutskiy
2025-06-16  1:31   ` Zhang, Rui
2025-06-16  3:47     ` Calvin Owens
2025-06-18  3:30       ` Zhang, Rui
2025-06-18 14:42         ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox