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>

authored by Adrian Bunk and committed by David S. Miller 551dec47 ada44a04

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