Commit 9f799613 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by David Mosberger

[PATCH] ia64: [COMPAT] Eliminate the rest of the __kernel_..._t32 typedefs

parent 8c2000be
...@@ -1849,10 +1849,10 @@ struct ipc_perm32 { ...@@ -1849,10 +1849,10 @@ struct ipc_perm32 {
struct ipc64_perm32 { struct ipc64_perm32 {
key_t key; key_t key;
__kernel_uid32_t32 uid; compat_uid32_t uid;
__kernel_gid32_t32 gid; compat_gid32_t gid;
__kernel_uid32_t32 cuid; compat_uid32_t cuid;
__kernel_gid32_t32 cgid; compat_gid32_t cgid;
compat_mode_t mode; compat_mode_t mode;
unsigned short __pad1; unsigned short __pad1;
unsigned short seq; unsigned short seq;
...@@ -1895,8 +1895,8 @@ struct msqid_ds32 { ...@@ -1895,8 +1895,8 @@ struct msqid_ds32 {
unsigned short msg_cbytes; unsigned short msg_cbytes;
unsigned short msg_qnum; unsigned short msg_qnum;
unsigned short msg_qbytes; unsigned short msg_qbytes;
__kernel_ipc_pid_t32 msg_lspid; compat_ipc_pid_t msg_lspid;
__kernel_ipc_pid_t32 msg_lrpid; compat_ipc_pid_t msg_lrpid;
}; };
struct msqid64_ds32 { struct msqid64_ds32 {
...@@ -1922,8 +1922,8 @@ struct shmid_ds32 { ...@@ -1922,8 +1922,8 @@ struct shmid_ds32 {
compat_time_t shm_atime; compat_time_t shm_atime;
compat_time_t shm_dtime; compat_time_t shm_dtime;
compat_time_t shm_ctime; compat_time_t shm_ctime;
__kernel_ipc_pid_t32 shm_cpid; compat_ipc_pid_t shm_cpid;
__kernel_ipc_pid_t32 shm_lpid; compat_ipc_pid_t shm_lpid;
unsigned short shm_nattch; unsigned short shm_nattch;
}; };
......
...@@ -14,11 +14,18 @@ typedef s32 compat_clock_t; ...@@ -14,11 +14,18 @@ typedef s32 compat_clock_t;
typedef s32 compat_pid_t; typedef s32 compat_pid_t;
typedef u16 compat_uid_t; typedef u16 compat_uid_t;
typedef u16 compat_gid_t; typedef u16 compat_gid_t;
typedef u32 compat_uid32_t;
typedef u32 compat_gid32_t;
typedef u16 compat_mode_t; typedef u16 compat_mode_t;
typedef u32 compat_ino_t; typedef u32 compat_ino_t;
typedef u16 compat_dev_t; typedef u16 compat_dev_t;
typedef s32 compat_off_t; typedef s32 compat_off_t;
typedef s64 compat_loff_t;
typedef u16 compat_nlink_t; typedef u16 compat_nlink_t;
typedef u16 compat_ipc_pid_t;
typedef s32 compat_daddr_t;
typedef u32 compat_caddr_t;
typedef __kernel_fsid_t compat_fsid_t;
struct compat_timespec { struct compat_timespec {
compat_time_t tv_sec; compat_time_t tv_sec;
......
...@@ -12,17 +12,6 @@ ...@@ -12,17 +12,6 @@
* 32 bit structures for IA32 support. * 32 bit structures for IA32 support.
*/ */
/* 32bit compatibility types */
typedef unsigned short __kernel_ipc_pid_t32;
typedef unsigned int __kernel_uid32_t32;
typedef unsigned int __kernel_gid32_t32;
typedef unsigned short __kernel_umode_t32;
typedef short __kernel_nlink_t32;
typedef int __kernel_daddr_t32;
typedef unsigned int __kernel_caddr_t32;
typedef long __kernel_loff_t32;
typedef __kernel_fsid_t __kernel_fsid_t32;
#define IA32_PAGE_SHIFT 12 /* 4KB pages */ #define IA32_PAGE_SHIFT 12 /* 4KB pages */
#define IA32_PAGE_SIZE (1UL << IA32_PAGE_SHIFT) #define IA32_PAGE_SIZE (1UL << IA32_PAGE_SHIFT)
#define IA32_PAGE_MASK (~(IA32_PAGE_SIZE - 1)) #define IA32_PAGE_MASK (~(IA32_PAGE_SIZE - 1))
...@@ -222,7 +211,7 @@ struct statfs32 { ...@@ -222,7 +211,7 @@ struct statfs32 {
int f_bavail; int f_bavail;
int f_files; int f_files;
int f_ffree; int f_ffree;
__kernel_fsid_t32 f_fsid; compat_fsid_t f_fsid;
int f_namelen; /* SunOS ignores this field. */ int f_namelen; /* SunOS ignores this field. */
int f_spare[6]; int f_spare[6];
}; };
......
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