net: ethernet: ti: cpsw_switchdev: fix unmet direct dependencies detected for NET_SWI...
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 4 Dec 2019 17:45:32 +0000 (19:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Dec 2019 22:39:06 +0000 (14:39 -0800)
commitaacf6578ef7704d8df252bbc146b1a35ca131248
tree6ccb9d2e6d16fee4a3141695e01c2767d8a57e4e
parentb87440526324d253a9dc4c043d84d7c1b4df0614
net: ethernet: ti: cpsw_switchdev: fix unmet direct dependencies detected for NET_SWITCHDEV

Replace "select NET_SWITCHDEV" vs "depends on NET_SWITCHDEV" to fix Kconfig
warning with CONFIG_COMPILE_TEST=y

WARNING: unmet direct dependencies detected for NET_SWITCHDEV
  Depends on [n]: NET [=y] && INET [=n]
  Selected by [y]:
  - TI_CPSW_SWITCHDEV [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_TI [=y] && (ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST [=y])

because TI_CPSW_SWITCHDEV blindly selects NET_SWITCHDEV even though
INET is not set/enabled, while NET_SWITCHDEV depends on INET.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Fixes: ed3525eda4c4 ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/Kconfig