From: Tony Ambardar Date: Thu, 16 Jan 2025 07:50:36 +0000 (-0800) Subject: selftests/bpf: Fix undefined UINT_MAX in veristat.c X-Git-Tag: v6.14-rc1~133^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8d1c48d0720140b53063ff23507845bb2078e92;p=thirdparty%2Flinux.git selftests/bpf: Fix undefined UINT_MAX in veristat.c Include in 'veristat.c' to provide a UINT_MAX definition and avoid multiple compile errors against mips64el/musl-libc: veristat.c: In function 'max_verifier_log_size': veristat.c:1135:36: error: 'UINT_MAX' undeclared (first use in this function) 1135 | const int SMALL_LOG_SIZE = UINT_MAX >> 8; | ^~~~~~~~ veristat.c:24:1: note: 'UINT_MAX' is defined in header ''; did you forget to '#include '? 23 | #include +++ |+#include 24 | Fixes: 1f7c33630724 ("selftests/bpf: Increase verifier log limit in veristat") Signed-off-by: Tony Ambardar Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20250116075036.3459898-1-tony.ambardar@gmail.com --- diff --git a/tools/testing/selftests/bpf/veristat.c b/tools/testing/selftests/bpf/veristat.c index 8dcf5ee000ca8..c72111dfb35d7 100644 --- a/tools/testing/selftests/bpf/veristat.c +++ b/tools/testing/selftests/bpf/veristat.c @@ -21,6 +21,7 @@ #include #include #include +#include #ifndef ARRAY_SIZE #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))