summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cpu-probe.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2017-08-23 11:17:54 -0700
committerRalf Baechle <ralf@linux-mips.org>2017-08-29 15:21:55 +0200
commitb7fc2cc59aa5f49ecd1eae4f90ec229a7e52c47c (patch)
tree87c719e99b8f2c9891f4c72378af9aa616c129f2 /arch/mips/kernel/cpu-probe.c
parent7d630e83fcc14a6d9154d345a542ed3fbacdf5c5 (diff)
downloadlinux-b7fc2cc59aa5f49ecd1eae4f90ec229a7e52c47c.tar.gz
linux-b7fc2cc59aa5f49ecd1eae4f90ec229a7e52c47c.tar.bz2
linux-b7fc2cc59aa5f49ecd1eae4f90ec229a7e52c47c.zip
MIPS: Declare various variables & functions static
We currently have various variables & functions which are only used within a single translation unit, but which we don't declare static. This causes various sparse warnings of the form: arch/mips/kernel/mips-r2-to-r6-emul.c:49:1: warning: symbol 'mipsr2emustats' was not declared. Should it be static? arch/mips/kernel/unaligned.c:1381:11: warning: symbol 'reg16to32st' was not declared. Should it be static? arch/mips/mm/mmap.c:146:15: warning: symbol 'arch_mmap_rnd' was not declared. Should it be static? Fix these & others by declaring various affected variables & functions static, avoiding the sparse warnings & redundant symbols. [ralf@linux-mips.org: Add Marcin's build fix.] Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Cc: trivial@kernel.org Patchwork: https://patchwork.linux-mips.org/patch/17176/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r--arch/mips/kernel/cpu-probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 19ae0e279c86..c3ebbdefb0ad 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -326,7 +326,7 @@ static int __init fpu_disable(char *s)
__setup("nofpu", fpu_disable);
-int mips_dsp_disabled;
+static int mips_dsp_disabled;
static int __init dsp_disable(char *s)
{