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

powerpc/powermac: Move pmac_pfunc_base_install prototype to header file

The pmac_pfunc_base_install prototype was declared in powermac/smp.c since
function was used there, move it to pmac_pfunc.h header to be visible in
pfunc_base.c. Fix a warning treated as error with W=1:

arch/powerpc/platforms/powermac/pfunc_base.c:330:12: error: no previous prototype for ‘pmac_pfunc_base_install’ [-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
f91d5998 910be6be

+1 -1
+1
arch/powerpc/include/asm/pmac_pfunc.h
··· 245 245 246 246 extern int pmf_call_one(struct pmf_function *func, struct pmf_args *args); 247 247 248 + int pmac_pfunc_base_install(void); 248 249 249 250 /* Suspend/resume code called by via-pmu directly for now */ 250 251 extern void pmac_pfunc_base_suspend(void);
-1
arch/powerpc/platforms/powermac/smp.c
··· 65 65 #endif 66 66 67 67 extern void __secondary_start_pmac_0(void); 68 - extern int pmac_pfunc_base_install(void); 69 68 70 69 static void (*pmac_tb_freeze)(int freeze); 71 70 static u64 timebase;