Skip to contentSkip to conversation

package/mdio-tools: enable CONFIG_MDIO_BUS

PATCH Applied Robert Marko 2 participants 3 messages Oct 1, 2025 – Oct 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mdio-tools: enable CONFIG_MDIO_BUS

CONFIG_MDIO_BUS was previously a hidden symbol that was selected by CONFIG_MDIO_DEVICE, however since kernel 6.16 this changed.

CONFIG_MDIO_DEVICE was dropped and now CONFIG_MDIO_BUS is visible and must be directly selected[1].

So, enable CONFIG_MDIO_BUS directly as otherwise building mdio-tools can fail with:
ERROR: modpost: "mdio_find_bus" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_write" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_read" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_c45_read" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_c45_write" [mdio-netlink.ko] undefined!

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.16.9&id=31be641d74267d98317ef5a2b90e6200511cabb3
Fixes: https://autobuild.buildroot.org/results/8595997794a2f603fcef95b559f60f83abfe4d83/

---
 package/mdio-tools/mdio-tools.mk | 1 +
 1 file changed, 1 insertion(+)
package/mdio-tools/mdio-tools.mk +1 -0
index b42ea41c79..e61f847e13 100644
@@ -16,6 +16,7 @@ define MDIO_TOOLS_LINUX_CONFIG_FIXUPS
 	$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
 	$(call KCONFIG_ENABLE_OPT,CONFIG_NETDEVICES)
 	$(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_DEVICE)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_BUS)
 endef
 
 $(eval $(kernel-module))
Signature · 6 lines
2.51.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 14 lines · Robert Marko

CONFIG_MDIO_BUS was previously a hidden symbol that was selected by CONFIG_MDIO_DEVICE, however since kernel 6.16 this changed.

CONFIG_MDIO_DEVICE was dropped and now CONFIG_MDIO_BUS is visible and must be directly selected[1].

So, enable CONFIG_MDIO_BUS directly as otherwise building mdio-tools can fail with:
ERROR: modpost: "mdio_find_bus" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_write" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_read" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_c45_read" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_c45_write" [mdio-netlink.ko] undefined!

Quoted 4 lines

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.16.9&id=31be641d74267d98317ef5a2b90e6200511cabb3
Fixes: https://autobuild.buildroot.org/results/8595997794a2f603fcef95b559f60f83abfe4d83/

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Robert Marko

In reply of:

Quoted 14 lines

CONFIG_MDIO_BUS was previously a hidden symbol that was selected by CONFIG_MDIO_DEVICE, however since kernel 6.16 this changed.

CONFIG_MDIO_DEVICE was dropped and now CONFIG_MDIO_BUS is visible and must be directly selected[1].

So, enable CONFIG_MDIO_BUS directly as otherwise building mdio-tools can fail with:
ERROR: modpost: "mdio_find_bus" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_write" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_read" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_c45_read" [mdio-netlink.ko] undefined!
ERROR: modpost: "__mdiobus_c45_write" [mdio-netlink.ko] undefined!

Quoted 4 lines

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.16.9&id=31be641d74267d98317ef5a2b90e6200511cabb3
Fixes: https://autobuild.buildroot.org/results/8595997794a2f603fcef95b559f60f83abfe4d83/

Applied to 2025.08.x. Thanks

Quoted 23 lines
---
 package/mdio-tools/mdio-tools.mk | 1 +
 1 file changed, 1 insertion(+)
package/mdio-tools/mdio-tools.mk +1 -0
index b42ea41c79..e61f847e13 100644
@@ -16,6 +16,7 @@ define MDIO_TOOLS_LINUX_CONFIG_FIXUPS
 	$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
 	$(call KCONFIG_ENABLE_OPT,CONFIG_NETDEVICES)
 	$(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_DEVICE)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_MDIO_BUS)
 endef
 
 $(eval $(kernel-module))
Signature · 6 lines
2.51.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot