diff options
author | 2025-06-13 09:54:23 -0700 | |
---|---|---|
committer | 2025-08-08 16:05:53 -0400 | |
commit | 6ea0ec1b958a84aff9f03fb0ae4613a4d5bed3ea (patch) | |
tree | 5cd51b4e9c6593fb6bc691a8c0d8275721c01525 | |
parent | tools/power turbostat: verify arguments to params --show and --hide (diff) | |
download | wireguard-linux-6ea0ec1b958a84aff9f03fb0ae4613a4d5bed3ea.tar.xz wireguard-linux-6ea0ec1b958a84aff9f03fb0ae4613a4d5bed3ea.zip |
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 <calvin@wbinvd.org>
Reviewed-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <stdbool.h> #include <assert.h> #include <linux/kernel.h> +#include <limits.h> #define UNUSED(x) (void)(x) |