Re: [PATCH v2 bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-08 Thread Daniel Borkmann
On 07/03/2019 10:26 AM, YueHaibing wrote: > 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 refere

Re: [PATCH v2 bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-03 Thread Yonghong Song
On 7/3/19 1:26 AM, YueHaibing wrote: > 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

[PATCH v2 bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-03 Thread YueHaibing
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