m68k: coldfire: make mcf_maskimr() static
authorGreg Ungerer <gerg@kernel.org>
Tue, 12 Sep 2023 03:58:06 +0000 (13:58 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 22 Oct 2023 22:22:22 +0000 (08:22 +1000)
When building with W=1:

      CC      arch/m68k/coldfire/intc.o
    arch/m68k/coldfire/intc.c:83:6: warning: no previous prototype for ‘mcf_maskimr’ [-Wmissing-prototypes]
     void mcf_maskimr(unsigned int mask)
          ^~~~~~~~~~~

The mcf_maskimr() function is only used within this file, make it static
to reduce name space pollution and fix warning.

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/coldfire/intc.c

index 20c084e932c89347731e99faa218d69ec359314e..b434371e2b99e76e8468627ca19d3880b67e94e2 100644 (file)
@@ -56,7 +56,7 @@ void mcf_clrimr(int index)
        __raw_writew(imr & ~(0x1 << index), MCFSIM_IMR);
 }
 
-void mcf_maskimr(unsigned int mask)
+static void mcf_maskimr(unsigned int mask)
 {
        u16 imr;
        imr = __raw_readw(MCFSIM_IMR);
@@ -80,7 +80,7 @@ void mcf_clrimr(int index)
        __raw_writel(imr & ~(0x1 << index), MCFSIM_IMR);
 }
 
-void mcf_maskimr(unsigned int mask)
+static void mcf_maskimr(unsigned int mask)
 {
        u32 imr;
        imr = __raw_readl(MCFSIM_IMR);