Re: [PATCH bpf v2] bpf: fix unused-var without NETDEVICES

2020-06-04 Thread Daniel Borkmann
On 6/3/20 10:45 PM, Song Liu wrote: On Wed, Jun 3, 2020 at 12:05 PM Matthieu Baerts wrote: A recent commit added new variables only used if CONFIG_NETDEVICES is set. A simple fix would be to only declare these variables if the same condition is valid but Alexei suggested an even simpler soluti

Re: [PATCH bpf v2] bpf: fix unused-var without NETDEVICES

2020-06-03 Thread Song Liu
On Wed, Jun 3, 2020 at 12:05 PM Matthieu Baerts wrote: > > A recent commit added new variables only used if CONFIG_NETDEVICES is > set. A simple fix would be to only declare these variables if the same > condition is valid but Alexei suggested an even simpler solution: > > since CONFIG_NETDEVI