Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/52xx: Add missing functions prototypes

The function prototypes were declared within a `#ifdef CONFIG_PPC_LITE5200`
block which would prevent them from being visible when compiling
`mpc52xx_pm.c`. Move the prototypes outside of the `#ifdef` block to fix
the following warnings treated as errors with W=1:

arch/powerpc/platforms/52xx/mpc52xx_pm.c:58:5: error: no previous prototype for ‘mpc52xx_pm_prepare’ [-Werror=missing-prototypes]
arch/powerpc/platforms/52xx/mpc52xx_pm.c:113:5: error: no previous prototype for ‘mpc52xx_pm_enter’ [-Werror=missing-prototypes]
arch/powerpc/platforms/52xx/mpc52xx_pm.c:181:6: error: no previous prototype for ‘mpc52xx_pm_finish’ [-Werror=missing-prototypes]

Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Mathieu Malaterre and committed by
Michael Ellerman
c3f0515e f72cf3f1

+3 -3
+3 -3
arch/powerpc/include/asm/mpc52xx.h
··· 350 350 extern int __init mpc52xx_pm_init(void); 351 351 extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level); 352 352 353 - #ifdef CONFIG_PPC_LITE5200 354 - extern int __init lite5200_pm_init(void); 355 - 356 353 /* lite5200 calls mpc5200 suspend functions, so here they are */ 357 354 extern int mpc52xx_pm_prepare(void); 358 355 extern int mpc52xx_pm_enter(suspend_state_t); 359 356 extern void mpc52xx_pm_finish(void); 360 357 extern char saved_sram[0x4000]; /* reuse buffer from mpc52xx suspend */ 358 + 359 + #ifdef CONFIG_PPC_LITE5200 360 + int __init lite5200_pm_init(void); 361 361 #endif 362 362 #endif /* CONFIG_PM */ 363 363