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

From: Randy Dunlap
Date: Fri May 22 2020 - 15:02:22 EST


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]

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Yotam Gigi <yotam.gi@xxxxxxxxx>
---
This might be too stringent...

net/psample/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20200522.orig/net/psample/Kconfig
+++ linux-next-20200522/net/psample/Kconfig
@@ -4,7 +4,7 @@
#

menuconfig PSAMPLE
- depends on NET
+ depends on INET
tristate "Packet-sampling netlink channel"
default n
help