Commit ba6965f2 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

[PATCH] Consolidate the last compat sigvals

This patch just consolidates the last of the (what should have been)
compat_sigval_ts.  It also fixes S390 that had a sigval_t in its struct
compat_siginfo.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2feb6f04
...@@ -225,11 +225,6 @@ struct stat64 { ...@@ -225,11 +225,6 @@ struct stat64 {
unsigned int st_ino_hi; unsigned int st_ino_hi;
}; };
typedef union sigval32 {
int sival_int;
unsigned int sival_ptr;
} sigval_t32;
typedef struct compat_siginfo { typedef struct compat_siginfo {
int si_signo; int si_signo;
int si_errno; int si_errno;
...@@ -249,7 +244,7 @@ typedef struct compat_siginfo { ...@@ -249,7 +244,7 @@ typedef struct compat_siginfo {
timer_t _tid; /* timer id */ timer_t _tid; /* timer id */
int _overrun; /* overrun count */ int _overrun; /* overrun count */
char _pad[sizeof(unsigned int) - sizeof(int)]; char _pad[sizeof(unsigned int) - sizeof(int)];
sigval_t32 _sigval; /* same as below */ compat_sigval_t _sigval; /* same as below */
int _sys_private; /* not to be passed to user */ int _sys_private; /* not to be passed to user */
} _timer; } _timer;
...@@ -257,7 +252,7 @@ typedef struct compat_siginfo { ...@@ -257,7 +252,7 @@ typedef struct compat_siginfo {
struct { struct {
unsigned int _pid; /* sender's pid */ unsigned int _pid; /* sender's pid */
unsigned int _uid; /* sender's uid */ unsigned int _uid; /* sender's uid */
sigval_t32 _sigval; compat_sigval_t _sigval;
} _rt; } _rt;
/* SIGCHLD */ /* SIGCHLD */
...@@ -283,7 +278,7 @@ typedef struct compat_siginfo { ...@@ -283,7 +278,7 @@ typedef struct compat_siginfo {
} compat_siginfo_t; } compat_siginfo_t;
typedef struct sigevent32 { typedef struct sigevent32 {
sigval_t32 sigev_value; compat_sigval_t sigev_value;
int sigev_signo; int sigev_signo;
int sigev_notify; int sigev_notify;
union { union {
......
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
#define SI_PAD_SIZE32 ((SI_MAX_SIZE/sizeof(int)) - 3) #define SI_PAD_SIZE32 ((SI_MAX_SIZE/sizeof(int)) - 3)
typedef union sigval32 {
int sival_int;
s32 sival_ptr;
} sigval_t32;
typedef struct compat_siginfo { typedef struct compat_siginfo {
int si_signo; int si_signo;
int si_code; int si_code;
...@@ -89,7 +84,7 @@ typedef struct compat_siginfo { ...@@ -89,7 +84,7 @@ typedef struct compat_siginfo {
struct { struct {
compat_pid_t _pid; /* sender's pid */ compat_pid_t _pid; /* sender's pid */
compat_uid_t _uid; /* sender's uid */ compat_uid_t _uid; /* sender's uid */
sigval_t32 _sigval; compat_sigval_t _sigval;
} _rt; } _rt;
} _sifields; } _sifields;
......
...@@ -29,11 +29,6 @@ struct old_sigaction32 { ...@@ -29,11 +29,6 @@ struct old_sigaction32 {
__u32 sa_restorer; /* Another 32 bit pointer */ __u32 sa_restorer; /* Another 32 bit pointer */
}; };
typedef union sigval32 {
int sival_int;
__u32 sival_ptr;
} sigval_t32;
typedef struct compat_siginfo { typedef struct compat_siginfo {
int si_signo; int si_signo;
int si_errno; int si_errno;
...@@ -52,7 +47,7 @@ typedef struct compat_siginfo { ...@@ -52,7 +47,7 @@ typedef struct compat_siginfo {
struct { struct {
timer_t _tid; /* timer id */ timer_t _tid; /* timer id */
int _overrun; /* overrun count */ int _overrun; /* overrun count */
sigval_t _sigval; /* same as below */ compat_sigval_t _sigval; /* same as below */
int _sys_private; /* not to be passed to user */ int _sys_private; /* not to be passed to user */
} _timer; } _timer;
...@@ -60,7 +55,7 @@ typedef struct compat_siginfo { ...@@ -60,7 +55,7 @@ typedef struct compat_siginfo {
struct { struct {
pid_t _pid; /* sender's pid */ pid_t _pid; /* sender's pid */
uid_t _uid; /* sender's uid */ uid_t _uid; /* sender's uid */
sigval_t32 _sigval; compat_sigval_t _sigval;
} _rt; } _rt;
/* SIGCHLD */ /* SIGCHLD */
......
...@@ -104,7 +104,7 @@ typedef struct compat_siginfo{ ...@@ -104,7 +104,7 @@ typedef struct compat_siginfo{
struct { struct {
timer_t _tid; /* timer id */ timer_t _tid; /* timer id */
int _overrun; /* overrun count */ int _overrun; /* overrun count */
sigval_t32 _sigval; /* same as below */ compat_sigval_t _sigval; /* same as below */
int _sys_private; /* not to be passed to user */ int _sys_private; /* not to be passed to user */
} _timer; } _timer;
...@@ -112,7 +112,7 @@ typedef struct compat_siginfo{ ...@@ -112,7 +112,7 @@ typedef struct compat_siginfo{
struct { struct {
compat_pid_t _pid; /* sender's pid */ compat_pid_t _pid; /* sender's pid */
unsigned int _uid; /* sender's uid */ unsigned int _uid; /* sender's uid */
sigval_t32 _sigval; compat_sigval_t _sigval;
} _rt; } _rt;
/* SIGCHLD */ /* SIGCHLD */
......
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
typedef union sigval32 {
int sival_int;
u32 sival_ptr;
} sigval_t32;
struct compat_siginfo; struct compat_siginfo;
#endif /* CONFIG_COMPAT */ #endif /* CONFIG_COMPAT */
...@@ -42,7 +37,7 @@ struct compat_siginfo; ...@@ -42,7 +37,7 @@ struct compat_siginfo;
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
typedef struct sigevent32 { typedef struct sigevent32 {
sigval_t32 sigev_value; compat_sigval_t sigev_value;
int sigev_signo; int sigev_signo;
int sigev_notify; int sigev_notify;
union { union {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment