diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2013-04-25 06:23:41 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-04-25 12:45:50 -0400 |
commit | f15a2a12d01573fcf9d2beb657f308845d55fc66 (patch) | |
tree | 02325d7a5bcf1f2c5d543329b25b10f5e1467943 /arch/arm64/include/asm | |
parent | 5108c67c376b3ee59cc7fbe46eaba481eb3419aa (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.h | 22 |
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; | |||
35 | typedef s32 compat_pid_t; | 35 | typedef s32 compat_pid_t; |
36 | typedef u32 __compat_uid_t; | 36 | typedef u32 __compat_uid_t; |
37 | typedef u32 __compat_gid_t; | 37 | typedef u32 __compat_gid_t; |
38 | typedef u16 __compat_uid16_t; | ||
39 | typedef u16 __compat_gid16_t; | ||
38 | typedef u32 __compat_uid32_t; | 40 | typedef u32 __compat_uid32_t; |
39 | typedef u32 __compat_gid32_t; | 41 | typedef u32 __compat_gid32_t; |
40 | typedef u32 compat_mode_t; | 42 | typedef u16 compat_mode_t; |
41 | typedef u32 compat_ino_t; | 43 | typedef u32 compat_ino_t; |
42 | typedef u32 compat_dev_t; | 44 | typedef u32 compat_dev_t; |
43 | typedef s32 compat_off_t; | 45 | typedef s32 compat_off_t; |
44 | typedef s64 compat_loff_t; | 46 | typedef s64 compat_loff_t; |
45 | typedef s16 compat_nlink_t; | 47 | typedef s32 compat_nlink_t; |
46 | typedef u16 compat_ipc_pid_t; | 48 | typedef u16 compat_ipc_pid_t; |
47 | typedef s32 compat_daddr_t; | 49 | typedef s32 compat_daddr_t; |
48 | typedef u32 compat_caddr_t; | 50 | typedef u32 compat_caddr_t; |
@@ -50,9 +52,11 @@ typedef __kernel_fsid_t compat_fsid_t; | |||
50 | typedef s32 compat_key_t; | 52 | typedef s32 compat_key_t; |
51 | typedef s32 compat_timer_t; | 53 | typedef s32 compat_timer_t; |
52 | 54 | ||
55 | typedef s16 compat_short_t; | ||
53 | typedef s32 compat_int_t; | 56 | typedef s32 compat_int_t; |
54 | typedef s32 compat_long_t; | 57 | typedef s32 compat_long_t; |
55 | typedef s64 compat_s64; | 58 | typedef s64 compat_s64; |
59 | typedef u16 compat_ushort_t; | ||
56 | typedef u32 compat_uint_t; | 60 | typedef u32 compat_uint_t; |
57 | typedef u32 compat_ulong_t; | 61 | typedef u32 compat_ulong_t; |
58 | typedef u64 compat_u64; | 62 | typedef 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 | ||
91 | struct compat_flock { | 95 | struct compat_flock { |