]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Declare various variables & functions static
authorPaul Burton <paul.burton@imgtec.com>
Wed, 23 Aug 2017 18:17:54 +0000 (11:17 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Aug 2017 13:21:55 +0000 (15:21 +0200)
commit9b89f76555e6223c057db6511508018978d607a1
tree87c719e99b8f2c9891f4c72378af9aa616c129f2
parentc9f6bad688ed9e0ad15203ed4f1e28283a9b906b
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>
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/mips-r2-to-r6-emul.c
arch/mips/kernel/pm-cps.c
arch/mips/kernel/unaligned.c
arch/mips/mm/dma-default.c