]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Declare __bpf_free_used_maps() unconditionally
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 12 Jan 2021 07:55:16 +0000 (23:55 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Jan 2021 23:00:01 +0000 (15:00 -0800)
commit8874c3b70ac1aed04e4a72f0c19b614e1744eac5
tree53bc053893e0ebec10cdd39cb9d82fb4729e3e38
parent644b42948405cad36292d4c55f435deeb6ab1d3d
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: 1749b0f2486c ("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
include/linux/bpf.h