[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7afaf95f-a8bd-986e-02ac-2f4900ae1c1a@iogearbox.net>
Date: Tue, 9 Oct 2018 00:54:18 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Song Liu <liu.song.a23@...il.com>, joe@...d.net.nz
Cc: Arnd Bergmann <arnd@...db.de>, Alexei Starovoitov <ast@...nel.org>,
"David S . Miller" <davem@...emloft.net>,
John Fastabend <john.fastabend@...il.com>,
Martin KaFai Lau <kafai@...com>,
makita.toshiaki@....ntt.co.jp, Lawrence Brakmo <brakmo@...com>,
Andrey Ignatov <rdna@...com>,
Jesper Dangaard Brouer <brouer@...hat.com>,
Jakub Kicinski <jakub.kicinski@...ronome.com>,
Mathieu Xhonneux <m.xhonneux@...il.com>,
David Ahern <dsahern@...il.com>,
Networking <netdev@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCHv2 bpf-next] bpf: fix building without CONFIG_INET
On 10/08/2018 10:52 PM, Song Liu wrote:
> On Mon, Oct 8, 2018 at 11:30 AM Joe Stringer <joe@...d.net.nz> wrote:
>>
>> From: Arnd Bergmann <arnd@...db.de>
>>
>> The newly added TCP and UDP handling fails to link when CONFIG_INET
>> is disabled:
>>
>> net/core/filter.o: In function `sk_lookup':
>> filter.c:(.text+0x7ff8): undefined reference to `tcp_hashinfo'
>> filter.c:(.text+0x7ffc): undefined reference to `tcp_hashinfo'
>> filter.c:(.text+0x8020): undefined reference to `__inet_lookup_established'
>> filter.c:(.text+0x8058): undefined reference to `__inet_lookup_listener'
>> filter.c:(.text+0x8068): undefined reference to `udp_table'
>> filter.c:(.text+0x8070): undefined reference to `udp_table'
>> filter.c:(.text+0x808c): undefined reference to `__udp4_lib_lookup'
>> net/core/filter.o: In function `bpf_sk_release':
>> filter.c:(.text+0x82e8): undefined reference to `sock_gen_put'
>>
>> Wrap the related sections of code in #ifdefs for the config option.
>>
>> Furthermore, sk_lookup() should always have been marked 'static', this
>> also avoids a warning about a missing prototype when building with
>> 'make W=1'.
>>
>> Fixes: 6acc9b432e67 ("bpf: Add helper to retrieve socket in BPF")
>> Signed-off-by: Arnd Bergmann <arnd@...db.de>
>> Signed-off-by: Joe Stringer <joe@...d.net.nz>
>
> Acked-by: Song Liu <songliubraving@...com>
Applied to bpf-next, thanks!
Powered by blists - more mailing lists