Re: [PATCH] ARM: Allow pre-ARMv5 builds with ld.lld 16.0.0 and newer

From: Arnd Bergmann
Date: Mon Jan 30 2023 - 13:20:34 EST


On Mon, Jan 30, 2023, at 19:10, kernel test robot wrote:
> Hi Nathan,
>
> I love your patch! Perhaps something to improve:
>
> [auto build test WARNING on 5dc4c995db9eb45f6373a956eb1f69460e69e6d4]
>
> url:
> https://github.com/intel-lab-lkp/linux/commits/Nathan-Chancellor/ARM-Allow-pre-ARMv5-builds-with-ld-lld-16-0-0-and-newer/20230119-032402
> base: 5dc4c995db9eb45f6373a956eb1f69460e69e6d4
>>> arch/arm/mach-sa1100/pm.c:122:12: warning: no previous prototype for function 'sa11x0_pm_init' [-Wmissing-prototypes]
> int __init sa11x0_pm_init(void)
> ^
> arch/arm/mach-sa1100/pm.c:122:1: note: declare 'static' if the
> function is not intended to be used outside of this translation unit
> int __init sa11x0_pm_init(void)
> ^
> static
> 1 warning generated.
> --


For refernece, these are all known problems, the patch just allowed
the code to be built by clang/lld when that was previously not
possible.

After the 6.3 merge window, we can probably go through the much
smaller set of board files are address most of the W=1 warnings that
were previously overwhelming.

Arnd