Re: [PATCH] clk: davinci: guard da850-specific init data references

From: Rosen Penev

Date: Wed Aug 12 2026 - 14:21:17 EST


On Wed, Aug 12, 2026 at 7:06 AM David Lechner <david@xxxxxxxxxxxxxx> wrote:
>
> On 8/11/26 2:08 PM, Rosen Penev wrote:
> > With COMPILE_TEST support, COMMON_CLK_DAVINCI can be enabled on
> > architectures without DaVinci support, where COMMON_CLK_DAVINCI_DA850
> > is not set. pll.c and psc.c unconditionally reference da850 init
> > functions and init data that are only built with the DA850 option,
> > resulting in undefined reference link errors.
> >
> > Guard the da850 entries in the match tables and the CLK_OF_DECLARE
> > with CONFIG_COMMON_CLK_DAVINCI_DA850.
> >
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202608111912.YS4Vg7Jh-lkp@xxxxxxxxx/
> > Fixes: 34aeb6853fe2 ("clk: davinci: add COMPILE_TEST support")
> I don't think this patch was ever accepted, so you just need to send
> a v3 of that patch. Plus I left a comment on v2 that was never
> addressed.
Hrm I thought the kernel test bot operated on merged commits. Interesting...
>