From: Calvin Owens Date: Fri, 13 Jun 2025 16:54:23 +0000 (-0700) Subject: tools/power turbostat: Fix build with musl X-Git-Tag: io_uring-6.17-20250815~3^2~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6ea0ec1b958a84aff9f03fb0ae4613a4d5bed3ea;p=linux-block.git tools/power turbostat: Fix build with musl 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 Reviewed-by: Artem Bityutskiy Signed-off-by: Len Brown --- diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 4056b7e26a0f..778aee48c6e6 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -67,6 +67,7 @@ #include #include #include +#include #define UNUSED(x) (void)(x)