Skip to content

Commit e4371f6

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390/compat: remove ptrace compat definitions from uapi header file
The compat definitions are not part of the uapi. So move them to s390's private compat header file. Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent 0f58104 commit e4371f6

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

arch/s390/include/asm/compat.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ typedef u32 compat_ulong_t;
7070
typedef u64 compat_u64;
7171
typedef u32 compat_uptr_t;
7272

73+
typedef struct {
74+
u32 mask;
75+
u32 addr;
76+
} __aligned(8) psw_compat_t;
77+
78+
typedef struct {
79+
psw_compat_t psw;
80+
u32 gprs[NUM_GPRS];
81+
u32 acrs[NUM_ACRS];
82+
u32 orig_gpr2;
83+
} s390_compat_regs;
84+
85+
typedef struct {
86+
u32 gprs_high[NUM_GPRS];
87+
} s390_compat_regs_high;
88+
7389
struct compat_timespec {
7490
compat_time_t tv_sec;
7591
s32 tv_nsec;

arch/s390/include/asm/elf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
*/
120120

121121
#include <asm/ptrace.h>
122+
#include <asm/compat.h>
122123
#include <asm/user.h>
123124

124125
typedef s390_fp_regs elf_fpregset_t;

arch/s390/include/uapi/asm/ptrace.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,6 @@ typedef struct
215215
unsigned long addr;
216216
} __attribute__ ((aligned(8))) psw_t;
217217

218-
typedef struct
219-
{
220-
__u32 mask;
221-
__u32 addr;
222-
} __attribute__ ((aligned(8))) psw_compat_t;
223-
224218
#ifndef __s390x__
225219

226220
#define PSW_MASK_PER 0x40000000UL
@@ -295,20 +289,6 @@ typedef struct
295289
unsigned long orig_gpr2;
296290
} s390_regs;
297291

298-
typedef struct
299-
{
300-
psw_compat_t psw;
301-
__u32 gprs[NUM_GPRS];
302-
__u32 acrs[NUM_ACRS];
303-
__u32 orig_gpr2;
304-
} s390_compat_regs;
305-
306-
typedef struct
307-
{
308-
__u32 gprs_high[NUM_GPRS];
309-
} s390_compat_regs_high;
310-
311-
312292
/*
313293
* Now for the user space program event recording (trace) definitions.
314294
* The following structures are used only for the ptrace interface, don't

0 commit comments

Comments
 (0)