summaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@kernel.org>2023-09-12 13:58:06 +1000
committerGreg Ungerer <gerg@linux-m68k.org>2023-10-23 08:22:22 +1000
commit7c2aa8d195cd34ec47ac26994adac43bfd5037b8 (patch)
tree1a9b85a83924ffabcd60745f154da19bffcb1503 /arch/m68k
parent863dafa74eceaa7dc45c781566efc5395085f178 (diff)
downloadlinux-stable-7c2aa8d195cd34ec47ac26994adac43bfd5037b8.tar.gz
linux-stable-7c2aa8d195cd34ec47ac26994adac43bfd5037b8.tar.bz2
linux-stable-7c2aa8d195cd34ec47ac26994adac43bfd5037b8.zip
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>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/coldfire/intc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/coldfire/intc.c b/arch/m68k/coldfire/intc.c
index 20c084e932c8..b434371e2b99 100644
--- a/arch/m68k/coldfire/intc.c
+++ b/arch/m68k/coldfire/intc.c
@@ -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);