Re: dw_mipi_dsi-stm.c:(.text+0x8db9a3): undefined reference to `clk_hw_unregister'

From: Raphael Gallais-Pou
Date: Mon Sep 09 2024 - 03:51:18 EST



On 9/5/24 10:19, Borislav Petkov wrote:
> Hi all,
>
> this fires in my randbuilds here:
>
> vmlinux.o: warning: objtool: adis16400_write_raw() falls through to next function adis16400_show_serial_number()
> ld: vmlinux.o: in function `dw_mipi_dsi_stm_remove':
> dw_mipi_dsi-stm.c:(.text+0x8db9a3): undefined reference to `clk_hw_unregister'
> ld: vmlinux.o: in function `dw_mipi_dsi_clk_register':
> dw_mipi_dsi-stm.c:(.text+0x8db9f5): undefined reference to `clk_hw_register'
> ld: vmlinux.o: in function `lvds_remove':
> lvds.c:(.text+0x8dc605): undefined reference to `clk_hw_unregister'
> make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
> make[1]: *** [/home/amd/bpetkov/kernel/linux/Makefile:1156: vmlinux] Error 2
> make: *** [Makefile:224: __sub-make] Error 2
>
> is there a fix somewhere?

Hi Borislav,


Arnd Bergmann sent a patch regarding this issue on x86 that I merged several
weeks ago.

https://lore.kernel.org/lkml/20240719075454.3595358-1-arnd@xxxxxxxxxx/
https://lore.kernel.org/all/c3d0757a-07c0-4f83-9f06-c3ad205aa1e9@xxxxxxxxxxx/

>
> People love to do
>
> depends on ... COMPILE_TEST
>
> but then if no one takes care of it in time:
>
> https://lore.kernel.org/oe-kbuild-all/202407212000.rpDH64jP-lkp@xxxxxxxxx

Now, I'm not familiar with PowerPC architecture and toolchains, but I think this
patch should fix your problem.
Do you have the above fixup in your tree ? If not please try it.

Thanks,

Regards,
Raphaël

>
> that COMPILE_TEST thing is forcing me to simply blacklist it and is not really
> helping.
>
> Thx.
>