staging/octeon: Fix build error without CONFIG_NETDEVICES
authorYueHaibing <yuehaibing@huawei.com>
Wed, 31 Jul 2019 16:02:19 +0000 (18:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2019 16:07:05 +0000 (09:07 -0700)
commit6a7ce95d752efa86a1a383385d4f8035c224dc3d
treee632a3835d3bc3959e64b7b1792183b929907fc8
parentac5fe22636e2d934056cebcf5d2c9ff7fade6514
staging/octeon: Fix build error without CONFIG_NETDEVICES

While do COMPILE_TEST build without CONFIG_NETDEVICES,
we get Kconfig warning:

WARNING: unmet direct dependencies detected for PHYLIB
  Depends on [n]: NETDEVICES [=n]
  Selected by [y]:
  - OCTEON_ETHERNET [=y] && STAGING [=y] && (CAVIUM_OCTEON_SOC && NETDEVICES [=n] || COMPILE_TEST [=y])

Reported-by: Hulk Robot <hulkci@huawei.com>
Reported-by: Mark Brown <broonie@kernel.org>
Fixes: 171a9bae68c7 ("staging/octeon: Allow test build on !MIPS")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/octeon/Kconfig