Skip to contentSkip to conversation

selftests/bpf: Correct typo in __clang_major__ macro

PATCH Applied Peilin Ye 2 participants 2 messages Apr 25, 2025 – Apr 26, 2025

Subsystems (3)
lore
Share & tools
lore

Peilin Ye

author
#0 lore raw

PATCH 1/1 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()")
---
 tools/testing/selftests/bpf/progs/bpf_misc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/progs/bpf_misc.h +1 -1
index 13a2e22f5465..863df7c0fdd0 100644
@@ -221,7 +221,7 @@
 #define CAN_USE_GOTOL
 #endif
 
-#if _clang_major__ >= 18
+#if __clang_major__ >= 18
 #define CAN_USE_BPF_ST
 #endif
 
Signature · 1 line
2.49.0.850.g28803427d3-goog
#1 lore raw
This patch was applied to bpf/bpf.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <[email protected]>:

Quoted 8 lines · On Fri, 25 Apr 2025 21:37:10 +0000 you wrote:

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()")
---
 tools/testing/selftests/bpf/progs/bpf_misc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [bpf] selftests/bpf: Correct typo in __clang_major__ macro

    https://git.kernel.org/bpf/bpf/c/f0007910784a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html