summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-09-11 23:19:22 -0700
committerDavid S. Miller <davem@davemloft.net>2008-09-11 23:19:22 -0700
commit8f20b20de73eeabe3d35e67e0ce993eceef07492 (patch)
tree54ac89b908c07d714f58fa355ff6fbb91b52489b /arch/sparc
parent4845afac95a653f8e64c45024cbb94264df54b8f (diff)
downloadlinux-8f20b20de73eeabe3d35e67e0ce993eceef07492.tar.gz
linux-8f20b20de73eeabe3d35e67e0ce993eceef07492.tar.bz2
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/sparc')
-rw-r--r--arch/sparc/include/asm/ptrace_64.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/ptrace_64.h b/arch/sparc/include/asm/ptrace_64.h
index 06e4914c13f4..3d3e9c161d8b 100644
--- a/arch/sparc/include/asm/ptrace_64.h
+++ b/arch/sparc/include/asm/ptrace_64.h
@@ -113,6 +113,8 @@ struct sparc_trapf {
#ifdef __KERNEL__
+#include <linux/threads.h>
+
static inline int pt_regs_trap_type(struct pt_regs *regs)
{
return regs->magic & 0x1ff;
@@ -138,6 +140,7 @@ struct global_reg_snapshot {
struct thread_info *thread;
unsigned long pad1;
};
+extern struct global_reg_snapshot global_reg_snapshot[NR_CPUS];
#define __ARCH_WANT_COMPAT_SYS_PTRACE