Re: arch/arm/mm/proc.c:82:6: error: conflicting types for 'cpu_arm920_reset'

From: Linus Walleij
Date: Wed Jun 26 2024 - 16:59:35 EST


On Wed, Jun 26, 2024 at 7:21 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:

> Hmmm, it seems like the prototypes of the reset functions in
> arch/arm/mm/proc.c are incorrect? This builds for me with the original
> configuration and allmodconfig + CONFIG_CFI_CLANG=y.

Incidentally I fixed it earlier today!
https://lore.kernel.org/linux-arm-kernel/20240626-arm-proto-regression-v1-1-089c23ea13dd@xxxxxxxxxx/

I added you on Reported-by for now.

> +void cpu_arm7tdmi_reset(unsigned long addr, bool hvc) __attribute__((noreturn));

The attribute is not needed on the prototype AFAICT?

Yours,
Linus Walleij