From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Date: Fri, 22 May 2020 13:05:26 -0700 > From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> > > Fix psample build error when CONFIG_INET is not set/enabled by > bracketing the tunnel code in #ifdef CONFIG_NET / #endif. > > ../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] > > Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> > Cc: Yotam Gigi <yotam.gi@xxxxxxxxx> > Cc: Cong Wang <xiyou.wangcong@xxxxxxxxx> > --- > v2: Just bracket the new tunnel support code inside ifdef/endif (Cong Wang). Applied, thanks Randy.