net: micrel: fix KS8851_MLL Kconfig
Subsystems (2)
PATCH 1/1 net: micrel: fix KS8851_MLL Kconfig
KS8851_MLL selects MICREL_PHY, which depends on PTP_1588_CLOCK_OPTIONAL, so make KS8851_MLL also depend on PTP_1588_CLOCK_OPTIONAL since 'select' does not follow any dependency chains.
Fixes kconfig warning and build errors:
WARNING: unmet direct dependencies detected for MICREL_PHY
Depends on [m]: NETDEVICES [=y] && PHYLIB [=y] && PTP_1588_CLOCK_OPTIONAL [=m] Selected by [y]:
- KS8851_MLL [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_MICREL [=y] && HAS_IOMEM [=y]
ld: drivers/net/phy/micrel.o: in function `lan8814_ts_info':
micrel.c:(.text+0xb35): undefined reference to `ptp_clock_index'
ld: drivers/net/phy/micrel.o: in function `lan8814_probe':
micrel.c:(.text+0x2586): undefined reference to `ptp_clock_register'
--- drivers/net/ethernet/micrel/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/micrel/Kconfig +1 -0
@@ -39,6 +39,7 @@ config KS8851 config KS8851_MLL tristate "Micrel KS8851 MLL" depends on HAS_IOMEM + depends on PTP_1588_CLOCK_OPTIONAL select MII select CRC32 select EEPROM_93CX6
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:
Quoted 4 lines · On Thu, 31 Mar 2022 22:42:44 -0700 you wrote:
KS8851_MLLselectsMICREL_PHY, which depends onPTP_1588_CLOCK_OPTIONAL, so makeKS8851_MLLalso depend onPTP_1588_CLOCK_OPTIONALsince 'select' does not follow any dependency chains.
Quoted 8 lines
Fixes kconfig warning and build errors:
WARNING: unmet direct dependencies detected for
MICREL_PHY
Depends on [m]: NETDEVICES [=y] && PHYLIB [=y] &&PTP_1588_CLOCK_OPTIONAL[=m] Selected by [y]:
-KS8851_MLL[=y] && NETDEVICES [=y] && ETHERNET [=y] &&NET_VENDOR_MICREL[=y] &&HAS_IOMEM[=y][...]
Here is the summary with links:
- net: micrel: fix KS8851_MLL Kconfig
https://git.kernel.org/netdev/net/c/c3efcedd272a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html