Re: next: powerpc: gpio_mdio.c:(.text+0x13c): undefined reference to `__of_mdiobus_register'

From: Arnd Bergmann
Date: Thu Apr 20 2023 - 08:22:25 EST


On Thu, Apr 20, 2023, at 12:57, Naresh Kamboju wrote:
> Following build failures noticed on Linux next-20230419 for powerpc.
>
> Regressions found on powerpc:
> - build/gcc-8-defconfig
> - build/clang-16-defconfig
> - build/gcc-12-defconfig
> - build/clang-nightly-defconfig
>
>
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
>
> Build log:
> --------
> powerpc64le-linux-gnu-ld: arch/powerpc/platforms/pasemi/gpio_mdio.o:
> in function `gpio_mdio_probe':
> gpio_mdio.c:(.text+0x13c): undefined reference to `__of_mdiobus_register'
> powerpc64le-linux-gnu-ld: drivers/net/phy/phy_device.o: in function `phy_probe':
> phy_device.c:(.text+0x56ac): undefined reference to
> `devm_led_classdev_register_ext'
> powerpc64le-linux-gnu-ld: drivers/net/ethernet/pasemi/pasemi_mac.o: in
> function `pasemi_mac_open':
> pasemi_mac.c:(.text+0x19ac): undefined reference to `of_phy_connect'
> make[2]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1

Same bug as the other one:

https://lore.kernel.org/all/20230420084624.3005701-1-arnd@xxxxxxxxxx/

Arnd