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

2019-07-03 Thread Yuehaibing
On 2019/7/2 23:53, Stanislav Fomichev wrote: > On 07/02, YueHaibing wrote: >> If CONFIG_NET is not set, 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): undef

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

2019-07-02 Thread Yuehaibing
On 2019/7/3 0:04, Yonghong Song wrote: > > > On 7/2/19 8:53 AM, Stanislav Fomichev wrote: >> On 07/02, YueHaibing wrote: >>> If CONFIG_NET is not set, gcc building fails: >>> >>> kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': >>> cgroup.c:(.text+0x237e): undefined reference to `bpf_sk_

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

2019-07-02 Thread Yonghong Song
On 7/2/19 8:53 AM, Stanislav Fomichev wrote: > On 07/02, YueHaibing wrote: >> If CONFIG_NET is not set, 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): und

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

2019-07-02 Thread Yonghong Song
On 7/2/19 6:29 AM, YueHaibing wrote: > If CONFIG_NET is not set, 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

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

2019-07-02 Thread Stanislav Fomichev
On 07/02, YueHaibing wrote: > If CONFIG_NET is not set, 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' > k