Skip to content

Commit f000791

Browse files
peilin-yeAlexei Starovoitov
authored andcommitted
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: 2ea8f6a ("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>
1 parent 548762f commit f000791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/progs/bpf_misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
#define CAN_USE_GOTOL
222222
#endif
223223

224-
#if _clang_major__ >= 18
224+
#if __clang_major__ >= 18
225225
#define CAN_USE_BPF_ST
226226
#endif
227227

0 commit comments

Comments
 (0)