]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sparc64: Fix prototype warning for prom_get_mmu_ihandle
authorAndreas Larsson <andreas@gaisler.com>
Wed, 10 Jul 2024 09:41:54 +0000 (11:41 +0200)
committerAndreas Larsson <andreas@gaisler.com>
Thu, 11 Jul 2024 13:58:28 +0000 (15:58 +0200)
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>
arch/sparc/prom/misc_64.c

index aed94cd4a1e738c7020856a2a3b0f80c0fae8fb8..3792736ff21fd6113ed5386092a255115b70326e 100644 (file)
@@ -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;