summaryrefslogtreecommitdiffstats
path: root/arch/x86/net/bpf_jit_comp.c
diff options
context:
space:
mode:
authorJiri Benc2018-03-06 14:50:10 +0100
committerDaniel Borkmann2018-03-06 22:51:00 +0100
commit20d5de51e7052ae3fb645d8c5c584ee7383b2a93 (patch)
tree542a78539cf96938f8dc3c8625b46e9c1e775ba5 /arch/x86/net/bpf_jit_comp.c
parentbpf: fix bpf_skb_adjust_net/bpf_skb_proto_xlat to deal with gso sctp skbs (diff)
downloadkernel-qcow2-linux-20d5de51e7052ae3fb645d8c5c584ee7383b2a93.tar.gz
kernel-qcow2-linux-20d5de51e7052ae3fb645d8c5c584ee7383b2a93.tar.xz
kernel-qcow2-linux-20d5de51e7052ae3fb645d8c5c584ee7383b2a93.zip
tools: bpftool: fix compilation with older headers
Compilation of bpftool on a distro that lacks eBPF support in the installed kernel headers fails with: common.c: In function ‘is_bpffs’: common.c:96:40: error: ‘BPF_FS_MAGIC’ undeclared (first use in this function) return (unsigned long)st_fs.f_type == BPF_FS_MAGIC; ^ Fix this the same way it is already in tools/lib/bpf/libbpf.c and tools/lib/api/fs/fs.c. Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch/x86/net/bpf_jit_comp.c')
0 files changed, 0 insertions, 0 deletions