aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2013-04-25 06:23:41 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2013-04-25 12:45:50 -0400
commitf15a2a12d01573fcf9d2beb657f308845d55fc66 (patch)
tree02325d7a5bcf1f2c5d543329b25b10f5e1467943 /arch/arm64/include/asm
parent5108c67c376b3ee59cc7fbe46eaba481eb3419aa (diff)
arm64: Fix compat types affecting struct compat_stat
The compat_stat structure doesn't match the arch/arm/ struct stat definition. This patch fixes the compat types and struct compat_stat definition accordingly. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm')
-rw-r--r--arch/arm64/include/asm/compat.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h
index 618b450e5a1d..899af807ef0f 100644
--- a/arch/arm64/include/asm/compat.h
+++ b/arch/arm64/include/asm/compat.h
@@ -35,14 +35,16 @@ typedef s32 compat_clock_t;
35typedef s32 compat_pid_t; 35typedef s32 compat_pid_t;
36typedef u32 __compat_uid_t; 36typedef u32 __compat_uid_t;
37typedef u32 __compat_gid_t; 37typedef u32 __compat_gid_t;
38typedef u16 __compat_uid16_t;
39typedef u16 __compat_gid16_t;
38typedef u32 __compat_uid32_t; 40typedef u32 __compat_uid32_t;
39typedef u32 __compat_gid32_t; 41typedef u32 __compat_gid32_t;
40typedef u32 compat_mode_t; 42typedef u16 compat_mode_t;
41typedef u32 compat_ino_t; 43typedef u32 compat_ino_t;
42typedef u32 compat_dev_t; 44typedef u32 compat_dev_t;
43typedef s32 compat_off_t; 45typedef s32 compat_off_t;
44typedef s64 compat_loff_t; 46typedef s64 compat_loff_t;
45typedef s16 compat_nlink_t; 47typedef s32 compat_nlink_t;
46typedef u16 compat_ipc_pid_t; 48typedef u16 compat_ipc_pid_t;
47typedef s32 compat_daddr_t; 49typedef s32 compat_daddr_t;
48typedef u32 compat_caddr_t; 50typedef u32 compat_caddr_t;
@@ -50,9 +52,11 @@ typedef __kernel_fsid_t compat_fsid_t;
50typedef s32 compat_key_t; 52typedef s32 compat_key_t;
51typedef s32 compat_timer_t; 53typedef s32 compat_timer_t;
52 54
55typedef s16 compat_short_t;
53typedef s32 compat_int_t; 56typedef s32 compat_int_t;
54typedef s32 compat_long_t; 57typedef s32 compat_long_t;
55typedef s64 compat_s64; 58typedef s64 compat_s64;
59typedef u16 compat_ushort_t;
56typedef u32 compat_uint_t; 60typedef u32 compat_uint_t;
57typedef u32 compat_ulong_t; 61typedef u32 compat_ulong_t;
58typedef u64 compat_u64; 62typedef u64 compat_u64;
@@ -72,20 +76,20 @@ struct compat_stat {
72 compat_dev_t st_dev; 76 compat_dev_t st_dev;
73 compat_ino_t st_ino; 77 compat_ino_t st_ino;
74 compat_mode_t st_mode; 78 compat_mode_t st_mode;
75 compat_nlink_t st_nlink; 79 compat_ushort_t st_nlink;
76 __compat_uid32_t st_uid; 80 __compat_uid16_t st_uid;
77 __compat_gid32_t st_gid; 81 __compat_gid16_t st_gid;
78 compat_dev_t st_rdev; 82 compat_dev_t st_rdev;
79 compat_off_t st_size; 83 compat_off_t st_size;
80 compat_off_t st_blksize; 84 compat_off_t st_blksize;
81 compat_off_t st_blocks; 85 compat_off_t st_blocks;
82 compat_time_t st_atime; 86 compat_time_t st_atime;
83 u32 st_atime_nsec; 87 compat_ulong_t st_atime_nsec;
84 compat_time_t st_mtime; 88 compat_time_t st_mtime;
85 u32 st_mtime_nsec; 89 compat_ulong_t st_mtime_nsec;
86 compat_time_t st_ctime; 90 compat_time_t st_ctime;
87 u32 st_ctime_nsec; 91 compat_ulong_t st_ctime_nsec;
88 u32 __unused4[2]; 92 compat_ulong_t __unused4[2];
89}; 93};
90 94
91struct compat_flock { 95struct compat_flock {