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

From: Steven Rostedt
Date: Fri Oct 18 2019 - 14:20:30 EST


On Fri, 18 Oct 2019 18:11:07 +0000
Yonghong Song <yhs@xxxxxx> wrote:

> On 10/18/19 2:03 AM, YueHaibing wrote:
> > 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.
> >
> > Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> > Fixes: a7658e1a4164 ("bpf: Check types of arguments passed into helpers")
> > Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
>
> Acked-by: Yonghong Song <yhs@xxxxxx>

I'm getting ready for another push to Linus. Want me to pull this into
my tree?

-- Steve