From: Peilin Ye Date: Fri, 25 Apr 2025 21:37:10 +0000 (+0000) Subject: selftests/bpf: Correct typo in __clang_major__ macro X-Git-Tag: v6.15-rc4~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0007910784a61556e94c42b401a38116a899c73;p=thirdparty%2Flinux.git selftests/bpf: Correct typo in __clang_major__ macro Make sure that CAN_USE_BPF_ST test (compute_live_registers/store) is enabled when __clang_major__ >= 18. Fixes: 2ea8f6a1cda7 ("selftests/bpf: test cases for compute_live_registers()") Signed-off-by: Peilin Ye Link: https://lore.kernel.org/r/20250425213712.1542077-1-yepeilin@google.com Signed-off-by: Alexei Starovoitov --- diff --git a/tools/testing/selftests/bpf/progs/bpf_misc.h b/tools/testing/selftests/bpf/progs/bpf_misc.h index 13a2e22f54658..863df7c0fdd02 100644 --- a/tools/testing/selftests/bpf/progs/bpf_misc.h +++ b/tools/testing/selftests/bpf/progs/bpf_misc.h @@ -221,7 +221,7 @@ #define CAN_USE_GOTOL #endif -#if _clang_major__ >= 18 +#if __clang_major__ >= 18 #define CAN_USE_BPF_ST #endif