diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-07-28 22:05:27 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-07-29 01:29:00 +0300 |
commit | 310ad7970a0dec847563dc6dba9e7e587d545622 (patch) | |
tree | 4b3a9e52d65fe65b8996cb956de0ac51ba58a002 /arch/arm64/net/bpf_jit_comp.c | |
parent | ca5cd355b7f0372da0d50fce5b12a3367e417290 (diff) | |
download | linux-310ad7970a0dec847563dc6dba9e7e587d545622.tar.xz |
bpf: Fix build without CONFIG_NET when using BPF XDP link
Entire net/core subsystem is not built without CONFIG_NET. linux/netdevice.h
just assumes that it's always there, so the easiest way to fix this is to
conditionally compile out bpf_xdp_link_attach() use in bpf/syscall.c.
Fixes: aa8d3a716b59 ("bpf, xdp: Add bpf_link-based XDP attachment API")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200728190527.110830-1-andriin@fb.com
Diffstat (limited to 'arch/arm64/net/bpf_jit_comp.c')
0 files changed, 0 insertions, 0 deletions