diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-12 08:19:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-12 08:19:22 +0200 |
commit | 8f20b20de73eeabe3d35e67e0ce993eceef07492 (patch) | |
tree | 54ac89b908c07d714f58fa355ff6fbb91b52489b /arch/sparc64/kernel/process.c | |
parent | sparc64: Add __arch64__ to CHECKFLAGS (diff) | |
download | linux-8f20b20de73eeabe3d35e67e0ce993eceef07492.tar.xz linux-8f20b20de73eeabe3d35e67e0ce993eceef07492.zip |
sparc64: Fix sparse warnings in global reg snapshotting.
Lots of shadowed local variables and global_reg_snapshot[] needs
an extern declaration in asm/ptrace_64.h.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/process.c')
-rw-r--r-- | arch/sparc64/kernel/process.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index 11bb6c4612de..d5e2acef9877 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c @@ -215,7 +215,6 @@ static void __global_reg_self(struct thread_info *tp, struct pt_regs *regs, global_reg_snapshot[this_cpu].o7 = regs->u_regs[UREG_I7]; if (regs->tstate & TSTATE_PRIV) { - struct thread_info *tp = current_thread_info(); struct reg_window *rw; rw = (struct reg_window *) @@ -271,7 +270,6 @@ void __trigger_all_cpu_backtrace(void) for_each_online_cpu(cpu) { struct global_reg_snapshot *gp = &global_reg_snapshot[cpu]; - struct thread_info *tp; __global_reg_poll(gp); |