Re: [PATCH] clk: renesas: rzv2h-cpg: Fix undefined reference to r9a09g057_cpg_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 19, 2024 at 4:11 PM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
>
> Hi Prabhakar,
>
> On Mon, Aug 5, 2024 at 11:58 AM Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote:
> > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
> >
> > Address randconfig build issue where the linker reports an undefined
> > reference to `r9a09g057_cpg_info`. The error occurs when
> > CONFIG_CLK_R9A09G057 is not defined, leading to the inclusion of the
> > device match entry without the corresponding data. By adding a
> > preprocessor condition to the device match table, the entry for
> > r9a09g057 is included only when CONFIG_CLK_R9A09G057 is defined, thus
> > resolving the linker error.
> >
> > Error message:
> >    /usr/bin/ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions
> > >> /usr/bin/ld: drivers/clk/renesas/rzv2h-cpg.o:(.rodata+0xc0): undefined reference to `r9a09g057_cpg_info'
> >    clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
> >
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202408040932.SqrqyXGU-lkp@xxxxxxxxx/
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> Fixes: 42b54d52ecb7a819 ("clk: renesas: Add RZ/V2H(P) CPG driver")
> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
>
> As the issue is only present in renesas-clk, I will fold the fix into the
> original commit.
>
Thanks Geert.

Cheers,
Prabhakar





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux