[PATCH] powerpc/4xx: Remove WatchdogHandler() to fix no previous prototype error
Arnd Bergmann
arnd at arndb.de
Thu Aug 17 22:42:57 AEST 2023
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 at csgroup.eu>
> Cc: Arnd Bergmann <arnd at arndb.de>
Reviewed-by: Arnd Bergmann <arnd at arndb.de>
More information about the Linuxppc-dev
mailing list