f91dbb5268a657bfc59c38490de4e14ab97d275e
[openwrt/staging/florian.git] /
1 From 2b76d9221a02fa69bbb8c1045616afb923fc6bad Mon Sep 17 00:00:00 2001
2 From: David Daney <david.daney@cavium.com>
3 Date: Fri, 24 May 2013 20:54:08 +0000
4 Subject: [PATCH] MIPS: Declare emulate_load_store_microMIPS as a static
5 function.
6
7 commit 74338805ec6869594d583535f941cb478c94dd73 upstream.
8
9 It is only used from within a single file, it should not be globally
10 visible.
11
12 Signed-off-by: David Daney <david.daney@cavium.com>
13 Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
14 Cc: linux-mips@linux-mips.org
15 Patchwork: https://patchwork.linux-mips.org/patch/5325/
16 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
17 ---
18 arch/mips/kernel/unaligned.c | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
20
21 --- a/arch/mips/kernel/unaligned.c
22 +++ b/arch/mips/kernel/unaligned.c
23 @@ -684,7 +684,8 @@ const int reg16to32[] = { 16, 17, 2, 3,
24 /* Recode table from 16-bit STORE register notation to 32-bit GPR. */
25 const int reg16to32st[] = { 0, 17, 2, 3, 4, 5, 6, 7 };
26
27 -void emulate_load_store_microMIPS(struct pt_regs *regs, void __user * addr)
28 +static void emulate_load_store_microMIPS(struct pt_regs *regs,
29 + void __user *addr)
30 {
31 unsigned long value;
32 unsigned int res;