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

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/powermac: mark smp_psurge_{give,take}_timebase static

These functions are only called locally and should be static like the
other corresponding functions are:

arch/powerpc/platforms/powermac/smp.c:416:13: error: no previous prototype for 'smp_psurge_take_timebase' [-Werror=missing-prototypes]
416 | void __init smp_psurge_take_timebase(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/powermac/smp.c:432:13: error: no previous prototype for 'smp_psurge_give_timebase' [-Werror=missing-prototypes]
432 | void __init smp_psurge_give_timebase(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231108125843.3806765-20-arnd@kernel.org

authored by

Arnd Bergmann and committed by
Michael Ellerman
afb36ac3 0c9a768d

+2 -2
+2 -2
arch/powerpc/platforms/powermac/smp.c
··· 413 413 printk(KERN_ERR "Couldn't get primary IPI interrupt"); 414 414 } 415 415 416 - void __init smp_psurge_take_timebase(void) 416 + static void __init smp_psurge_take_timebase(void) 417 417 { 418 418 if (psurge_type != PSURGE_DUAL) 419 419 return; ··· 429 429 set_dec(tb_ticks_per_jiffy/2); 430 430 } 431 431 432 - void __init smp_psurge_give_timebase(void) 432 + static void __init smp_psurge_give_timebase(void) 433 433 { 434 434 /* Nothing to do here */ 435 435 }