summaryrefslogtreecommitdiff
path: root/kernel/bpf/inode.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@fb.com>2016-03-09 18:56:49 -0800
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:50:01 +0300
commit0477cab1b84fb6b16e18fca755b3385683c0252b (patch)
treebb13efd2c1cf9c522eafef34827e6a1ce74f1a64 /kernel/bpf/inode.c
parente3c32c274818dacf654edcd16f9f964ca41d7ecb (diff)
bpf: bpf_stackmap_copy depends on CONFIG_PERF_EVENTS
0-day bot reported build error: kernel/built-in.o: In function `map_lookup_elem': >> kernel/bpf/.tmp_syscall.o:(.text+0x329b3c): undefined reference to `bpf_stackmap_copy' when CONFIG_BPF_SYSCALL is set and CONFIG_PERF_EVENTS is not. Add weak definition to resolve it. This code path in map_lookup_elem() is never taken when CONFIG_PERF_EVENTS is not set. Fixes: 557c0c6e7df8 ("bpf: convert stackmap to pre-allocation") Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/bpf/inode.c')
0 files changed, 0 insertions, 0 deletions