aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-07-03 16:26:30 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-07-08 17:17:00 +0200
commit6705fea0c799a4efb9a9ce2968a2f7a570e33dc2 (patch)
tree51319bf5aa8bfa79062479dd1c2a1d33fc90364f /include/net/tcp.h
parentselftests/bpf: fix test_attach_probe map definition (diff)
downloadlinux-dev-6705fea0c799a4efb9a9ce2968a2f7a570e33dc2.tar.xz
linux-dev-6705fea0c799a4efb9a9ce2968a2f7a570e33dc2.zip
bpf: cgroup: Fix build error without CONFIG_NET
If CONFIG_NET is not set and CONFIG_CGROUP_BPF=y, gcc building fails: kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': cgroup.c:(.text+0x237e): undefined reference to `bpf_sk_storage_get_proto' cgroup.c:(.text+0x2394): undefined reference to `bpf_sk_storage_delete_proto' kernel/bpf/cgroup.o: In function `__cgroup_bpf_run_filter_getsockopt': (.text+0x2a1f): undefined reference to `lock_sock_nested' (.text+0x2ca2): undefined reference to `release_sock' kernel/bpf/cgroup.o: In function `__cgroup_bpf_run_filter_setsockopt': (.text+0x3006): undefined reference to `lock_sock_nested' (.text+0x32bb): undefined reference to `release_sock' Reported-by: Hulk Robot <hulkci@huawei.com> Suggested-by: Stanislav Fomichev <sdf@fomichev.me> Fixes: 0d01da6afc54 ("bpf: implement getsockopt and setsockopt hooks") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/net/tcp.h')
0 files changed, 0 insertions, 0 deletions