aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/traps_32.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/traps_32.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/traps_32.c')
-rw-r--r--arch/sparc/kernel/traps_32.c34
1 files changed, 3 insertions, 31 deletions
diff --git a/arch/sparc/kernel/traps_32.c b/arch/sparc/kernel/traps_32.c
index 2b7d50659036..716f3946c494 100644
--- a/arch/sparc/kernel/traps_32.c
+++ b/arch/sparc/kernel/traps_32.c
@@ -25,31 +25,10 @@
25#include <asm/unistd.h> 25#include <asm/unistd.h>
26#include <asm/traps.h> 26#include <asm/traps.h>
27 27
28/* #define TRAP_DEBUG */ 28#include "entry.h"
29 29#include "kernel.h"
30struct trap_trace_entry {
31 unsigned long pc;
32 unsigned long type;
33};
34
35void syscall_trace_entry(struct pt_regs *regs)
36{
37 printk("%s[%d]: ", current->comm, task_pid_nr(current));
38 printk("scall<%d> (could be %d)\n", (int) regs->u_regs[UREG_G1],
39 (int) regs->u_regs[UREG_I0]);
40}
41
42void syscall_trace_exit(struct pt_regs *regs)
43{
44}
45 30
46void sun4d_nmi(struct pt_regs *regs) 31/* #define TRAP_DEBUG */
47{
48 printk("Aieee: sun4d NMI received!\n");
49 printk("you lose buddy boy...\n");
50 show_regs(regs);
51 prom_halt();
52}
53 32
54static void instruction_dump(unsigned long *pc) 33static void instruction_dump(unsigned long *pc)
55{ 34{
@@ -134,7 +113,6 @@ void do_hw_interrupt(struct pt_regs *regs, unsigned long type)
134void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc, 113void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc,
135 unsigned long psr) 114 unsigned long psr)
136{ 115{
137 extern int do_user_muldiv (struct pt_regs *, unsigned long);
138 siginfo_t info; 116 siginfo_t info;
139 117
140 if(psr & PSR_PS) 118 if(psr & PSR_PS)
@@ -195,10 +173,6 @@ void do_memaccess_unaligned(struct pt_regs *regs, unsigned long pc, unsigned lon
195 send_sig_info(SIGBUS, &info, current); 173 send_sig_info(SIGBUS, &info, current);
196} 174}
197 175
198extern void fpsave(unsigned long *fpregs, unsigned long *fsr,
199 void *fpqueue, unsigned long *fpqdepth);
200extern void fpload(unsigned long *fpregs, unsigned long *fsr);
201
202static unsigned long init_fsr = 0x0UL; 176static unsigned long init_fsr = 0x0UL;
203static unsigned long init_fregs[32] __attribute__ ((aligned (8))) = 177static unsigned long init_fregs[32] __attribute__ ((aligned (8))) =
204 { ~0UL, ~0UL, ~0UL, ~0UL, ~0UL, ~0UL, ~0UL, ~0UL, 178 { ~0UL, ~0UL, ~0UL, ~0UL, ~0UL, ~0UL, ~0UL, ~0UL,
@@ -456,8 +430,6 @@ void do_BUG(const char *file, int line)
456 * up here so that timer interrupts work during initialization. 430 * up here so that timer interrupts work during initialization.
457 */ 431 */
458 432
459extern void sparc_cpu_startup(void);
460
461void trap_init(void) 433void trap_init(void)
462{ 434{
463 extern void thread_info_offsets_are_bolixed_pete(void); 435 extern void thread_info_offsets_are_bolixed_pete(void);