hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/arch/parisc/include/asm/compat.h
....@@ -8,36 +8,20 @@
88 #include <linux/sched.h>
99 #include <linux/thread_info.h>
1010
11
+#include <asm-generic/compat.h>
12
+
1113 #define COMPAT_USER_HZ 100
1214 #define COMPAT_UTS_MACHINE "parisc\0\0"
1315
14
-typedef u32 compat_size_t;
15
-typedef s32 compat_ssize_t;
16
-typedef s32 compat_clock_t;
17
-typedef s32 compat_pid_t;
1816 typedef u32 __compat_uid_t;
1917 typedef u32 __compat_gid_t;
2018 typedef u32 __compat_uid32_t;
2119 typedef u32 __compat_gid32_t;
2220 typedef u16 compat_mode_t;
23
-typedef u32 compat_ino_t;
2421 typedef u32 compat_dev_t;
25
-typedef s32 compat_off_t;
26
-typedef s64 compat_loff_t;
2722 typedef u16 compat_nlink_t;
2823 typedef u16 compat_ipc_pid_t;
29
-typedef s32 compat_daddr_t;
3024 typedef u32 compat_caddr_t;
31
-typedef s32 compat_key_t;
32
-typedef s32 compat_timer_t;
33
-
34
-typedef s32 compat_int_t;
35
-typedef s32 compat_long_t;
36
-typedef s64 compat_s64;
37
-typedef u32 compat_uint_t;
38
-typedef u32 compat_ulong_t;
39
-typedef u64 compat_u64;
40
-typedef u32 compat_uptr_t;
4125
4226 struct compat_stat {
4327 compat_dev_t st_dev; /* dev_t is 32 bits on parisc */
....@@ -48,11 +32,11 @@
4832 u16 st_reserved2; /* old st_gid */
4933 compat_dev_t st_rdev;
5034 compat_off_t st_size;
51
- compat_time_t st_atime;
35
+ old_time32_t st_atime;
5236 u32 st_atime_nsec;
53
- compat_time_t st_mtime;
37
+ old_time32_t st_mtime;
5438 u32 st_mtime_nsec;
55
- compat_time_t st_ctime;
39
+ old_time32_t st_ctime;
5640 u32 st_ctime_nsec;
5741 s32 st_blksize;
5842 s32 st_blocks;
....@@ -186,23 +170,6 @@
186170 */
187171 #define COMPAT_ELF_NGREG 80
188172 typedef compat_ulong_t compat_elf_gregset_t[COMPAT_ELF_NGREG];
189
-
190
-/*
191
- * A pointer passed in from user mode. This should not
192
- * be used for syscall parameters, just declare them
193
- * as pointers because the syscall entry code will have
194
- * appropriately converted them already.
195
- */
196
-
197
-static inline void __user *compat_ptr(compat_uptr_t uptr)
198
-{
199
- return (void __user *)(unsigned long)uptr;
200
-}
201
-
202
-static inline compat_uptr_t ptr_to_compat(void __user *uptr)
203
-{
204
- return (u32)(unsigned long)uptr;
205
-}
206173
207174 static __inline__ void __user *arch_compat_alloc_user_space(long len)
208175 {