]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/bpf: Correct typo in __clang_major__ macro
authorPeilin Ye <yepeilin@google.com>
Fri, 25 Apr 2025 21:37:10 +0000 (21:37 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 Apr 2025 23:56:10 +0000 (16:56 -0700)
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 <yepeilin@google.com>
Link: https://lore.kernel.org/r/20250425213712.1542077-1-yepeilin@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/bpf_misc.h

index 13a2e22f546583ce7cdb6f2d6c71d682e5c2ecc6..863df7c0fdd02798a47ad005883db95300164ca0 100644 (file)
 #define CAN_USE_GOTOL
 #endif
 
-#if _clang_major__ >= 18
+#if __clang_major__ >= 18
 #define CAN_USE_BPF_ST
 #endif