diff options
author | Florent Revest <revest@chromium.org> | 2020-12-08 20:36:23 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-09 05:23:36 +0300 |
commit | b60da4955f53d1f50e44351a9c3a37a92503079e (patch) | |
tree | 35605a7a6667b10c8dc1354aa76751d4f63f9126 /tools/testing/selftests/bpf/xsk_prereqs.sh | |
parent | 8bdd8e275ede9786d845b3ec952836e61fd824e9 (diff) | |
download | linux-b60da4955f53d1f50e44351a9c3a37a92503079e.tar.xz |
bpf: Only provide bpf_sock_from_file with CONFIG_NET
This moves the bpf_sock_from_file definition into net/core/filter.c
which only gets compiled with CONFIG_NET and also moves the helper proto
usage next to other tracing helpers that are conditional on CONFIG_NET.
This avoids
ld: kernel/trace/bpf_trace.o: in function `bpf_sock_from_file':
bpf_trace.c:(.text+0xe23): undefined reference to `sock_from_file'
When compiling a kernel with BPF and without NET.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20201208173623.1136863-1-revest@chromium.org
Diffstat (limited to 'tools/testing/selftests/bpf/xsk_prereqs.sh')
0 files changed, 0 insertions, 0 deletions