summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/44x
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2023-11-29 14:19:18 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2023-11-30 03:25:33 +0100
commitb90ad501715f2feb1b0bf97aa700adb39c78deb3 (patch)
tree57058d72657c21b52417010fa20d295a96106653 /arch/powerpc/platforms/44x
parentpowerpc/512x: Fix missing prototype warnings (diff)
downloadlinux-b90ad501715f2feb1b0bf97aa700adb39c78deb3.tar.xz
linux-b90ad501715f2feb1b0bf97aa700adb39c78deb3.zip
powerpc/44x: Make ppc44x_idle_init() static
The 44x/fsp2_defconfig build fails with: arch/powerpc/platforms/44x/idle.c:30:12: error: no previous prototype for ‘ppc44x_idle_init’ [-Werror=missing-prototypes] 30 | int __init ppc44x_idle_init(void) | ^~~~~~~~~~~~~~~~ Fix it by making ppc44x_idle_init() static. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231129131919.2528517-4-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/platforms/44x')
-rw-r--r--arch/powerpc/platforms/44x/idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/44x/idle.c b/arch/powerpc/platforms/44x/idle.c
index f533b495e7db..e2eeef8dff78 100644
--- a/arch/powerpc/platforms/44x/idle.c
+++ b/arch/powerpc/platforms/44x/idle.c
@@ -27,7 +27,7 @@ static void ppc44x_idle(void)
isync();
}
-int __init ppc44x_idle_init(void)
+static int __init ppc44x_idle_init(void)
{
if (!mode_spin) {
/* If we are not setting spin mode