Skip to contentSkip to conversation

net: dsa: felix: fix link error

PATCH Applied Arnd Bergmann 3 participants 3 messages Jan 8, 2020 – Jan 9, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: felix: fix link error

When the enetc driver is disabled, the mdio support fails to get built:

drivers/net/dsa/ocelot/felix_vsc9959.o: In function `vsc9959_mdio_bus_alloc':
felix_vsc9959.c:(.text+0x19c): undefined reference to enetc_hw_alloc' felix_vsc9959.c:(.text+0x1d1): undefined reference to enetc_mdio_read' felix_vsc9959.c:(.text+0x1d8): undefined reference to `enetc_mdio_write'

Change the Makefile to enter the subdirectory for this as well.

Fixes bdeced75b13f ("net: dsa: felix: Add PCS operations for PHYLINK")
---
 drivers/net/ethernet/freescale/Makefile | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/Makefile +1 -0
index 6a93293d31e0..67c436400352 100644
@@ -25,4 +25,5 @@ obj-$(CONFIG_FSL_DPAA_ETH) += dpaa/
 obj-$(CONFIG_FSL_DPAA2_ETH) += dpaa2/
 
 obj-$(CONFIG_FSL_ENETC) += enetc/
+obj-$(CONFIG_FSL_ENETC_MDIO) += enetc/
 obj-$(CONFIG_FSL_ENETC_VF) += enetc/
Signature · 1 line
2.20.0
Reviewed-by on v1 1/1
#1 lore raw

Thanks Arnd!

Quoted 4 lines · Arnd Bergmann

When the enetc driver is disabled, the mdio support fails to get built:

Quoted 8 lines

drivers/net/dsa/ocelot/felix_vsc9959.o: In function `vsc9959_mdio_bus_alloc':
felix_vsc9959.c:(.text+0x19c): undefined reference to enetc_hw_alloc' felix_vsc9959.c:(.text+0x1d1): undefined reference to enetc_mdio_read' felix_vsc9959.c:(.text+0x1d8): undefined reference to `enetc_mdio_write'

Change the Makefile to enter the subdirectory for this as well.

Fixes bdeced75b13f ("net: dsa: felix: Add PCS operations for PHYLINK")

I agree the patch is only seen with the commit you pointed to, but the problem is also introduced by:

Fixes 6517798dd343 ("enetc: Make MDIO accessors more generic and

export to include/linux/fsl")

[ please excuse me David, I don't know how to configure neither Gmail nor Thunderbird to disable word wrapping ]

Quoted 18 lines
---
 drivers/net/ethernet/freescale/Makefile | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/freescale/Makefile +1 -1
index 6a93293d31e0..67c436400352 100644
@@ -25,4 +25,5 @@ obj-$(CONFIG_FSL_DPAA_ETH) += dpaa/
 obj-$(CONFIG_FSL_DPAA2_ETH) += dpaa2/
 
 obj-$(CONFIG_FSL_ENETC) += enetc/
+obj-$(CONFIG_FSL_ENETC_MDIO) += enetc/
 obj-$(CONFIG_FSL_ENETC_VF) += enetc/
--

2.20.0

maintainer Applied
#2 lore raw
In reply to Arnd Bergmann

From: Arnd Bergmann <[email protected]>
Date: Wed, 8 Jan 2020 13:48:38 +0100

Quoted 8 lines

When the enetc driver is disabled, the mdio support fails to get built:

drivers/net/dsa/ocelot/felix_vsc9959.o: In function `vsc9959_mdio_bus_alloc':
felix_vsc9959.c:(.text+0x19c): undefined reference to enetc_hw_alloc' felix_vsc9959.c:(.text+0x1d1): undefined reference to enetc_mdio_read' felix_vsc9959.c:(.text+0x1d8): undefined reference to `enetc_mdio_write'

Quoted 4 lines

Change the Makefile to enter the subdirectory for this as well.

Fixes bdeced75b13f ("net: dsa: felix: Add PCS operations for PHYLINK")

Applied.