diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-10-18 12:03:44 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-10-18 21:57:07 +0300 |
commit | 1f5343c0ae9673543055e9794362766e1f0ed163 (patch) | |
tree | 9876da34a90984c6976b49c9cdff572d51e4ec75 /tools/lib/bpf/libbpf.c | |
parent | c108e3c1bdbd0783d7c19ee80abb0591f79029e8 (diff) | |
download | linux-1f5343c0ae9673543055e9794362766e1f0ed163.tar.xz |
bpf: Fix build error without CONFIG_NET
If CONFIG_NET is n, building fails:
kernel/trace/bpf_trace.o: In function `raw_tp_prog_func_proto':
bpf_trace.c:(.text+0x1a34): undefined reference to `bpf_skb_output_proto'
Wrap it into a #ifdef to fix this.
Fixes: a7658e1a4164 ("bpf: Check types of arguments passed into helpers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20191018090344.26936-1-yuehaibing@huawei.com
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions