aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/entry.h
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/entry.h
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/entry.h')
-rw-r--r--arch/sparc/kernel/entry.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/sparc/kernel/entry.h b/arch/sparc/kernel/entry.h
index a9ab19aa0411..06db4f18e453 100644
--- a/arch/sparc/kernel/entry.h
+++ b/arch/sparc/kernel/entry.h
@@ -5,6 +5,40 @@
5#include <linux/types.h> 5#include <linux/types.h>
6#include <linux/init.h> 6#include <linux/init.h>
7 7
8#ifdef CONFIG_SPARC32
9/* traps */
10extern void do_hw_interrupt(struct pt_regs *regs, unsigned long type);
11extern void do_illegal_instruction(struct pt_regs *regs, unsigned long pc,
12 unsigned long npc, unsigned long psr);
13
14extern void do_priv_instruction(struct pt_regs *regs, unsigned long pc,
15 unsigned long npc, unsigned long psr);
16extern void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc,
17 unsigned long npc,
18 unsigned long psr);
19extern void do_fpd_trap(struct pt_regs *regs, unsigned long pc,
20 unsigned long npc, unsigned long psr);
21extern void do_fpe_trap(struct pt_regs *regs, unsigned long pc,
22 unsigned long npc, unsigned long psr);
23extern void handle_tag_overflow(struct pt_regs *regs, unsigned long pc,
24 unsigned long npc, unsigned long psr);
25extern void handle_watchpoint(struct pt_regs *regs, unsigned long pc,
26 unsigned long npc, unsigned long psr);
27extern void handle_reg_access(struct pt_regs *regs, unsigned long pc,
28 unsigned long npc, unsigned long psr);
29extern void handle_cp_disabled(struct pt_regs *regs, unsigned long pc,
30 unsigned long npc, unsigned long psr);
31extern void handle_cp_exception(struct pt_regs *regs, unsigned long pc,
32 unsigned long npc, unsigned long psr);
33
34
35
36/* entry.S */
37extern void fpsave(unsigned long *fpregs, unsigned long *fsr,
38 void *fpqueue, unsigned long *fpqdepth);
39extern void fpload(unsigned long *fpregs, unsigned long *fsr);
40
41#else /* CONFIG_SPARC32 */
8extern void __init per_cpu_patch(void); 42extern void __init per_cpu_patch(void);
9extern void __init sun4v_patch(void); 43extern void __init sun4v_patch(void);
10extern void __init boot_cpu_id_too_large(int cpu); 44extern void __init boot_cpu_id_too_large(int cpu);
@@ -189,4 +223,5 @@ extern void handler_irq(int irq, struct pt_regs *regs);
189extern void init_irqwork_curcpu(void); 223extern void init_irqwork_curcpu(void);
190extern void __cpuinit sun4v_register_mondo_queues(int this_cpu); 224extern void __cpuinit sun4v_register_mondo_queues(int this_cpu);
191 225
226#endif /* CONFIG_SPARC32 */
192#endif /* _ENTRY_H */ 227#endif /* _ENTRY_H */