Skip to content

Commit 7c2aa8d

Browse files
Greg UngererGreg Ungerer
authored andcommitted
m68k: coldfire: make mcf_maskimr() static
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>
1 parent 863dafa commit 7c2aa8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/m68k/coldfire/intc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void mcf_clrimr(int index)
5656
__raw_writew(imr & ~(0x1 << index), MCFSIM_IMR);
5757
}
5858

59-
void mcf_maskimr(unsigned int mask)
59+
static void mcf_maskimr(unsigned int mask)
6060
{
6161
u16 imr;
6262
imr = __raw_readw(MCFSIM_IMR);
@@ -80,7 +80,7 @@ void mcf_clrimr(int index)
8080
__raw_writel(imr & ~(0x1 << index), MCFSIM_IMR);
8181
}
8282

83-
void mcf_maskimr(unsigned int mask)
83+
static void mcf_maskimr(unsigned int mask)
8484
{
8585
u32 imr;
8686
imr = __raw_readl(MCFSIM_IMR);

0 commit comments

Comments
 (0)