aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/muldiv.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-08 04:04:59 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-08 04:04:59 -0500
commit8d74e32a537e8dbb22a1d5e9005d11111dab979a (patch)
tree0a5919ff70abb19060e707754f85a0875b3adb04 /arch/sparc/kernel/muldiv.c
parent85bfbf44c37e403d4fcbcd630b3ca2377b156485 (diff)
sparc: fix sparse warnings in traps_32.c
o add decalrations to entry.h for functions only used from assembler o add declaratiosn to kernel.h for functions only used from .c o removed unused functions/extern declarations Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/muldiv.c')
-rw-r--r--arch/sparc/kernel/muldiv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sparc/kernel/muldiv.c b/arch/sparc/kernel/muldiv.c
index e352239e72c8..ba960c02bb55 100644
--- a/arch/sparc/kernel/muldiv.c
+++ b/arch/sparc/kernel/muldiv.c
@@ -17,6 +17,8 @@
17#include <asm/system.h> 17#include <asm/system.h>
18#include <asm/uaccess.h> 18#include <asm/uaccess.h>
19 19
20#include "kernel.h"
21
20/* #define DEBUG_MULDIV */ 22/* #define DEBUG_MULDIV */
21 23
22static inline int has_imm13(int insn) 24static inline int has_imm13(int insn)
@@ -88,9 +90,6 @@ store_reg(unsigned int result, unsigned int reg, struct pt_regs *regs)
88 return (put_user(result, &win->locals[reg - 16])); 90 return (put_user(result, &win->locals[reg - 16]));
89 } 91 }
90} 92}
91
92extern void handle_hw_divzero (struct pt_regs *regs, unsigned long pc,
93 unsigned long npc, unsigned long psr);
94 93
95/* Should return 0 if mul/div emulation succeeded and SIGILL should 94/* Should return 0 if mul/div emulation succeeded and SIGILL should
96 * not be issued. 95 * not be issued.