Re: [PATCH bpf-next] bpf, netns: Fix build without CONFIG_INET

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 21, 2020 at 7:01 AM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> On 7/21/20 3:07 AM, Jakub Sitnicki wrote:
> > When CONFIG_NET is set but CONFIG_INET isn't, build fails with:
> >
> >   ld: kernel/bpf/net_namespace.o: in function `netns_bpf_attach_type_unneed':
> >   kernel/bpf/net_namespace.c:32: undefined reference to `bpf_sk_lookup_enabled'
> >   ld: kernel/bpf/net_namespace.o: in function `netns_bpf_attach_type_need':
> >   kernel/bpf/net_namespace.c:43: undefined reference to `bpf_sk_lookup_enabled'
> >
> > This is because without CONFIG_INET bpf_sk_lookup_enabled symbol is not
> > available. Wrap references to bpf_sk_lookup_enabled with preprocessor
> > conditionals.
> >
> > Fixes: 1559b4aa1db4 ("inet: Run SK_LOOKUP BPF program on socket lookup")
> > Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> > Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> > Signed-off-by: Jakub Sitnicki <jakub@xxxxxxxxxxxxxx>
>
> Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> # build-tested

Applied. Thanks



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux