]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: selftests: Do not use generated kfunc prototypes for arena progs
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 13 Jun 2024 16:19:26 +0000 (10:19 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 13 Jun 2024 18:18:43 +0000 (11:18 -0700)
commit6a8260147745fe493d733d4e5f9b327da3720905
tree89ef7a194e42de9d31893e5c15d44fa42462654b
parent78746f93e903d022c692b9bb3a3e2570167b2dc2
bpf: selftests: Do not use generated kfunc prototypes for arena progs

When selftests are built with a new enough clang, the arena selftests
opt-in to use LLVM address_space attribute annotations for arena
pointers.

These annotations are not emitted by kfunc prototype generation. This
causes compilation errors when clang sees conflicting prototypes.

Fix by opting arena selftests out of using generated kfunc prototypes.

Fixes: 770abbb5a25a ("bpftool: Support dumping kfunc prototypes from BTF")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202406131810.c1B8hTm8-lkp@intel.com/
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/fc59a617439ceea9ad8dfbb4786843c2169496ae.1718295425.git.dxu@dxuuu.xyz
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/arena_htab.c
tools/testing/selftests/bpf/progs/arena_list.c
tools/testing/selftests/bpf/progs/verifier_arena.c
tools/testing/selftests/bpf/progs/verifier_arena_large.c