Commit 551dec47bb5964478db594385a896eb0d4ab2b0a

Authored by Adrian Bunk
Committed by David S. Miller
1 parent ada44a0430

sparc64: global_reg_snapshot is not for userspace

global_reg_snapshot shouldn't be visible in our userspace headers.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 6 additions and 2 deletions Side-by-side Diff

include/asm-sparc64/ptrace.h
... ... @@ -126,6 +126,8 @@
126 126 #define TRACEREG32_SZ sizeof(struct pt_regs32)
127 127 #define STACKFRAME32_SZ sizeof(struct sparc_stackf32)
128 128  
  129 +#ifdef __KERNEL__
  130 +
129 131 struct global_reg_snapshot {
130 132 unsigned long tstate;
131 133 unsigned long tpc;
... ... @@ -137,8 +139,6 @@
137 139 unsigned long pad2;
138 140 };
139 141  
140   -#ifdef __KERNEL__
141   -
142 142 #define __ARCH_WANT_COMPAT_SYS_PTRACE
143 143  
144 144 #define force_successful_syscall_return() \
... ... @@ -306,6 +306,8 @@
306 306 #define SF_XARG5 0x58
307 307 #define SF_XXARG 0x5c
308 308  
  309 +#ifdef __KERNEL__
  310 +
309 311 /* global_reg_snapshot offsets */
310 312 #define GR_SNAP_TSTATE 0x00
311 313 #define GR_SNAP_TPC 0x08
... ... @@ -315,6 +317,8 @@
315 317 #define GR_SNAP_THREAD 0x28
316 318 #define GR_SNAP_PAD1 0x30
317 319 #define GR_SNAP_PAD2 0x38
  320 +
  321 +#endif /* __KERNEL__ */
318 322  
319 323 /* Stuff for the ptrace system call */
320 324 #define PTRACE_SPARC_DETACH 11