Re: [PATCH] powerpc/4xx: Remove WatchdogHandler() to fix no previous prototype error

From: Arnd Bergmann
Date: Thu Aug 17 2023 - 08:44:01 EST


On Thu, Aug 17, 2023, at 14:40, Christophe Leroy wrote:
> Building ppc40x_defconfig throws the following error:
>
> CC arch/powerpc/kernel/traps.o
> arch/powerpc/kernel/traps.c:2232:29: warning: no previous prototype for
> 'WatchdogHandler' [-Wmissing-prototypes]
> 2232 | void __attribute__ ((weak)) WatchdogHandler(struct pt_regs
> *regs)
> | ^~~~~~~~~~~~~~~
>
> This function was imported by commit 14cf11af6cf6 ("powerpc: Merge
> enough to start building in arch/powerpc.") as a weak function but
> never defined and/or called outside traps.c
>
> As it has only one caller fold it inside its caller and remove it.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
> Cc: Arnd Bergmann <arnd@xxxxxxxx>

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>