Re: [PATCH -net-next] net: psample: depends on INET

From: Cong Wang
Date: Fri May 22 2020 - 15:17:47 EST


On Fri, May 22, 2020 at 12:03 PM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
>
> Fix psample build error when CONFIG_INET is not set/enabled.
> PSAMPLE should depend on INET instead of NET since
> ip_tunnel_info_opts() is only present for CONFIG_INET.
>
> ../net/psample/psample.c: In function â__psample_ip_tun_to_nlattrâ:
> ../net/psample/psample.c:216:25: error: implicit declaration of function âip_tunnel_info_optsâ; did you mean âip_tunnel_info_opts_setâ? [-Werror=implicit-function-declaration]

Or just make this tunnel support optional. psample does not
require it to function correctly.

Thanks.