s390/compat: remove ptrace compat definitions from uapi header file
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 20 Apr 2013 12:05:42 +0000 (14:05 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Apr 2013 08:18:12 +0000 (10:18 +0200)
The compat definitions are not part of the uapi. So move them to
s390's private compat header file.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/compat.h
arch/s390/include/asm/elf.h
arch/s390/include/uapi/asm/ptrace.h

index 1f1a449..da3df9f 100644 (file)
@@ -70,6 +70,22 @@ typedef u32          compat_ulong_t;
 typedef u64            compat_u64;
 typedef u32            compat_uptr_t;
 
+typedef struct {
+       u32 mask;
+       u32 addr;
+} __aligned(8) psw_compat_t;
+
+typedef struct {
+       psw_compat_t psw;
+       u32 gprs[NUM_GPRS];
+       u32 acrs[NUM_ACRS];
+       u32 orig_gpr2;
+} s390_compat_regs;
+
+typedef struct {
+       u32 gprs_high[NUM_GPRS];
+} s390_compat_regs_high;
+
 struct compat_timespec {
        compat_time_t   tv_sec;
        s32             tv_nsec;
index 1bfdf24..27ec2c3 100644 (file)
  */
 
 #include <asm/ptrace.h>
+#include <asm/compat.h>
 #include <asm/user.h>
 
 typedef s390_fp_regs elf_fpregset_t;
index a5ca214..3aa9f1e 100644 (file)
@@ -215,12 +215,6 @@ typedef struct
         unsigned long addr;
 } __attribute__ ((aligned(8))) psw_t;
 
-typedef struct
-{
-       __u32   mask;
-       __u32   addr;
-} __attribute__ ((aligned(8))) psw_compat_t;
-
 #ifndef __s390x__
 
 #define PSW_MASK_PER           0x40000000UL
@@ -295,20 +289,6 @@ typedef struct
        unsigned long orig_gpr2;
 } s390_regs;
 
-typedef struct
-{
-       psw_compat_t    psw;
-       __u32           gprs[NUM_GPRS];
-       __u32           acrs[NUM_ACRS];
-       __u32           orig_gpr2;
-} s390_compat_regs;
-
-typedef struct
-{
-       __u32           gprs_high[NUM_GPRS];
-} s390_compat_regs_high;
-
-
 /*
  * Now for the user space program event recording (trace) definitions.
  * The following structures are used only for the ptrace interface, don't