diff options
author | Daniel Xu <dxu@dxuuu.xyz> | 2024-06-13 18:19:26 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-06-13 20:18:43 +0200 |
commit | 6a8260147745fe493d733d4e5f9b327da3720905 (patch) | |
tree | 89ef7a194e42de9d31893e5c15d44fa42462654b /tools/testing/selftests/bpf/progs/verifier_arena_large.c | |
parent | bpf: Fix bpf_dynptr documentation comments (diff) | |
download | linux-6a8260147745fe493d733d4e5f9b327da3720905.tar.xz linux-6a8260147745fe493d733d4e5f9b327da3720905.zip |
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>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/verifier_arena_large.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/verifier_arena_large.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/verifier_arena_large.c b/tools/testing/selftests/bpf/progs/verifier_arena_large.c index ef66ea460264..6065f862d964 100644 --- a/tools/testing/selftests/bpf/progs/verifier_arena_large.c +++ b/tools/testing/selftests/bpf/progs/verifier_arena_large.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */ +#define BPF_NO_KFUNC_PROTOTYPES #include <vmlinux.h> #include <bpf/bpf_helpers.h> #include <bpf/bpf_tracing.h> |