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/pasemi: mark pas_shutdown() static

Allmodconfig builds show a warning about one function that is accidentally
marked global:

arch/powerpc/platforms/pasemi/setup.c:67:6: error: no previous prototype for 'pas_shutdown' [-Werror=missing-prototypes]

Fixes: 656fdf3ad8e0 ("powerpc/pasemi: Add Nemo board device init code.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231108125843.3806765-19-arnd@kernel.org

authored by

Arnd Bergmann and committed by
Michael Ellerman
0c9a768d 04c40eed

+1 -1
+1 -1
arch/powerpc/platforms/pasemi/setup.c
··· 64 64 } 65 65 66 66 #ifdef CONFIG_PPC_PASEMI_NEMO 67 - void pas_shutdown(void) 67 + static void pas_shutdown(void) 68 68 { 69 69 /* Set the PLD bit that makes the SB600 think the power button is being pressed */ 70 70 void __iomem *pld_map = ioremap(0xf5000000,4096);