dpaa2-ptp: fix compile error
Subsystems (3)
PATCH v2 1/1 dpaa2-ptp: fix compile error
From: Chenwandun <[email protected]>
phylink_set_port_modes will be compiled if CONFIG_PHYLINK enabled, dpaa2_mac_validate will be compiled if CONFIG_FSL_DPAA2_ETH enabled, it should select CONFIG_PHYLINK when dpaa2_mac_validate call phylink_set_port_modes
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.o: In function `dpaa2_mac_validate':
dpaa2-mac.c:(.text+0x3a1): undefined reference to phylink_set_port_modes' drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.o: In function dpaa2_mac_connect':
dpaa2-mac.c:(.text+0x91a): undefined reference to phylink_create' dpaa2-mac.c:(.text+0x94e): undefined reference to phylink_of_phy_connect' dpaa2-mac.c:(.text+0x97f): undefined reference to phylink_destroy' drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.o: In function dpaa2_mac_disconnect':
dpaa2-mac.c:(.text+0xa9f): undefined reference to phylink_disconnect_phy' dpaa2-mac.c:(.text+0xab0): undefined reference to phylink_destroy'
make: *** [vmlinux] Error 1
--- drivers/net/ethernet/freescale/dpaa2/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/dpaa2/Kconfig +1 -0
@@ -2,6 +2,7 @@ config FSL_DPAA2_ETH tristate "Freescale DPAA2 Ethernet" depends on FSL_MC_BUS && FSL_MC_DPIO + select PHYLINK help This is the DPAA2 Ethernet driver supporting Freescale SoCs with DPAA2 (DataPath Acceleration Architecture v2).
Signature · 1 line
2.7.4
From: Chen Wandun <[email protected]>
Date: Thu, 7 Nov 2019 09:39:49 +0800
Quoted 18 lines
From: Chenwandun <[email protected]>
phylink_set_port_modeswill be compiled ifCONFIG_PHYLINKenabled,dpaa2_mac_validatewill be compiled ifCONFIG_FSL_DPAA2_ETHenabled, it should selectCONFIG_PHYLINKwhendpaa2_mac_validatecallphylink_set_port_modes
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.o: In function `dpaa2_mac_validate':
dpaa2-mac.c:(.text+0x3a1): undefined reference tophylink_set_port_modes' drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.o: In functiondpaa2_mac_connect':
dpaa2-mac.c:(.text+0x91a): undefined reference tophylink_create' dpaa2-mac.c:(.text+0x94e): undefined reference tophylink_of_phy_connect' dpaa2-mac.c:(.text+0x97f): undefined reference tophylink_destroy' drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.o: In functiondpaa2_mac_disconnect':
dpaa2-mac.c:(.text+0xa9f): undefined reference tophylink_disconnect_phy' dpaa2-mac.c:(.text+0xab0): undefined reference tophylink_destroy'
make: *** [vmlinux] Error 1
Quoted 1 line
Fixes 719479230893 (dpaa2-eth: add MAC/PHY support through phylink)
In Fixes tags, place the commit header text in both parenthesis and double quotes, like this:
Quoted 1 line
Signed-off-by Chenwandun <[email protected]>
Applied, thank you.