net: ipvlan_l3s: fix kconfig dependency warning
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 13 Feb 2019 16:55:02 +0000 (08:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 16:58:37 +0000 (11:58 -0500)
Fix the kconfig warning in IPVLAN_L3S when neither INET nor IPV6
is enabled:

WARNING: unmet direct dependencies detected for NET_L3_MASTER_DEV
  Depends on [n]: NET [=y] && (INET [=n] || IPV6 [=n])
  Selected by [y]:
  - IPVLAN_L3S [=y] && NETDEVICES [=y] && NET_CORE [=y] && NETFILTER [=y]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Mahesh Bandewar <maheshb@google.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig

index 7f9727f64f55f65a08d87dda5e9a8a708ed72edb..6f561767b45ec562dae28ea40186090302ba0765 100644 (file)
@@ -147,6 +147,7 @@ config MACVTAP
 
 config IPVLAN_L3S
        depends on NETFILTER
+       depends on IPVLAN
        def_bool y
        select NET_L3_MASTER_DEV