From: YueHaibing Date: Wed, 31 Jul 2019 16:02:19 +0000 (+0200) Subject: staging/octeon: Fix build error without CONFIG_NETDEVICES X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a7ce95d752efa86a1a383385d4f8035c224dc3d;p=openwrt%2Fstaging%2Fblogic.git 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 Reported-by: Mark Brown Fixes: 171a9bae68c7 ("staging/octeon: Allow test build on !MIPS") Signed-off-by: YueHaibing Signed-off-by: Greg Kroah-Hartman Signed-off-by: David S. Miller --- diff --git a/drivers/staging/octeon/Kconfig b/drivers/staging/octeon/Kconfig index 5b3994649d99..5319909eb2f6 100644 --- a/drivers/staging/octeon/Kconfig +++ b/drivers/staging/octeon/Kconfig @@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 config OCTEON_ETHERNET tristate "Cavium Networks Octeon Ethernet support" - depends on CAVIUM_OCTEON_SOC && NETDEVICES || COMPILE_TEST + depends on CAVIUM_OCTEON_SOC || COMPILE_TEST + depends on NETDEVICES select PHYLIB select MDIO_OCTEON help