summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorAndreas Larsson <andreas@gaisler.com>2024-07-10 11:41:54 +0200
committerAndreas Larsson <andreas@gaisler.com>2024-07-11 15:58:28 +0200
commita9f52913ac60e7fc14306e7149e6c4e81e771f92 (patch)
tree1e0fb1a9a0bde81ab7855f66da1a9c34ce4ba708 /arch/sparc
parentsparc64: Fix incorrect function signature and add prototype for prom_cif_init (diff)
downloadlinux-a9f52913ac60e7fc14306e7149e6c4e81e771f92.tar.xz
linux-a9f52913ac60e7fc14306e7149e6c4e81e771f92.zip
sparc64: Fix prototype warning for prom_get_mmu_ihandle
arch/sparc/prom/misc_64.c:165:5: warning: no previous prototype for ‘prom_get_mmu_ihandle’ The function prom_get_mmu_ihandle has no users outside of misc_64.c so declare it static. Link: https://lore.kernel.org/r/20240710094155.458731-4-andreas@gaisler.com Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/prom/misc_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/prom/misc_64.c b/arch/sparc/prom/misc_64.c
index aed94cd4a1e7..3792736ff21f 100644
--- a/arch/sparc/prom/misc_64.c
+++ b/arch/sparc/prom/misc_64.c
@@ -162,7 +162,7 @@ unsigned char prom_get_idprom(char *idbuf, int num_bytes)
return 0xff;
}
-int prom_get_mmu_ihandle(void)
+static int prom_get_mmu_ihandle(void)
{
phandle node;
int ret;