staging/octeon: Fix build error without CONFIG_NETDEVICES
Subsystems (3)
Greg KH
maintainerPATCH v2 1/1 staging/octeon: Fix build error without CONFIG_NETDEVICES
From: YueHaibing <[email protected]>
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])
---
v2: cc: netdev and add another reported-by line.
drivers/staging/octeon/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/octeon/Kconfig +2 -1
@@ -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
Signature · 7 lines
2.7.4 _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
From: Greg KH <[email protected]>
Date: Wed, 31 Jul 2019 18:02:19 +0200
Quoted 10 lines
From: YueHaibing <[email protected]>
While do
COMPILE_TESTbuild withoutCONFIG_NETDEVICES, we getKconfigwarning: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])
Quoted 5 lines
Reported-by Hulk Robot <[email protected]>Reported-by Mark Brown <[email protected]>Fixes 171a9bae68c7 ("staging/octeon: Allow test build on !MIPS")Signed-off-by YueHaibing <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>
Applied to net-next.