diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-12-08 01:04:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-08 01:04:59 -0800 |
commit | 8d74e32a537e8dbb22a1d5e9005d11111dab979a (patch) | |
tree | 0a5919ff70abb19060e707754f85a0875b3adb04 /arch/sparc/kernel/kernel.h | |
parent | 85bfbf44c37e403d4fcbcd630b3ca2377b156485 (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/kernel.h')
-rw-r--r-- | arch/sparc/kernel/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h index 7f02aad2e1ab..3fa833843a00 100644 --- a/arch/sparc/kernel/kernel.h +++ b/arch/sparc/kernel/kernel.h @@ -4,5 +4,14 @@ extern const char *sparc_fpu_type; extern unsigned int fsr_storage; +#ifdef CONFIG_SPARC32 +/* cpu.c */ extern void cpu_probe(void); +/* traps_32.c */ +extern void handle_hw_divzero(struct pt_regs *regs, unsigned long pc, + unsigned long npc, unsigned long psr); +/* muldiv.c */ +extern int do_user_muldiv (struct pt_regs *, unsigned long); +#else /* CONFIG_SPARC32 */ +#endif |