aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_progs.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-01-11 23:55:16 -0800
committerAlexei Starovoitov <ast@kernel.org>2021-01-12 15:00:01 -0800
commit936f8946bdb48239f4292812d4d2e26c6d328c95 (patch)
tree53bc053893e0ebec10cdd39cb9d82fb4729e3e38 /tools/testing/selftests/bpf/test_progs.c
parentbpf: Avoid warning when re-casting __bpf_call_base into __bpf_call_base_args (diff)
downloadlinux-dev-936f8946bdb48239f4292812d4d2e26c6d328c95.tar.xz
linux-dev-936f8946bdb48239f4292812d4d2e26c6d328c95.zip
bpf: Declare __bpf_free_used_maps() unconditionally
__bpf_free_used_maps() is always defined in kernel/bpf/core.c, while include/linux/bpf.h is guarding it behind CONFIG_BPF_SYSCALL. Move it out of that guard region and fix compiler warning. Fixes: a2ea07465c8d ("bpf: Fix missing prog untrack in release_maps") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20210112075520.4103414-4-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/test_progs.c')
0 files changed, 0 insertions, 0 deletions