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.le...@csgroup.eu> > Cc: Arnd Bergmann <a...@arndb.de>
Reviewed-by: Arnd Bergmann <a...@arndb.de>