[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdX0JBtRfda5_X=2g3ehJQJqOf=JS-ZX57tZ0wzGjjsCOQ@mail.gmail.com>
Date: Mon, 19 Aug 2024 17:10:57 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Prabhakar <prabhakar.csengg@...il.com>
Cc: Michael Turquette <mturquette@...libre.com>, Stephen Boyd <sboyd@...nel.org>,
linux-renesas-soc@...r.kernel.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, Biju Das <biju.das.jz@...renesas.com>,
Fabrizio Castro <fabrizio.castro.jz@...esas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>, kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] clk: renesas: rzv2h-cpg: Fix undefined reference to r9a09g057_cpg_info
Hi Prabhakar,
On Mon, Aug 5, 2024 at 11:58 AM Prabhakar <prabhakar.csengg@...il.com> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
>
> 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@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202408040932.SqrqyXGU-lkp@intel.com/
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
Fixes: 42b54d52ecb7a819 ("clk: renesas: Add RZ/V2H(P) CPG driver")
Reviewed-by: Geert Uytterhoeven <geert+renesas@...der.be>
As the issue is only present in renesas-clk, I will fold the fix into the
original commit.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists