summaryrefslogtreecommitdiff
blob: 7641ef284fc22be6f73ff8d11e5e1911e7681659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--- linux-2.6.16/include/asm-x86_64/compat.h	2006-03-25 13:24:33.000000000 -0500
+++ linux-2.6.16.gentoo/include/asm-x86_64/compat.h	2006-03-25 13:41:26.000000000 -0500
@@ -193,14 +193,16 @@
 
 static inline compat_uptr_t ptr_to_compat(void __user *uptr)
 {
-	return (u32)(unsigned long)uptr;
+	return (__u32)(unsigned long)uptr;
 }
 
+#ifdef __KERNEL__
 static __inline__ void __user *compat_alloc_user_space(long len)
 {
 	struct pt_regs *regs = task_pt_regs(current);
 	return (void __user *)regs->rsp - len; 
 }
+#endif
 
 static inline int is_compat_task(void)
 {
--- linux-2.6.16/include/asm-ia64/compat.h	2006-03-25 13:24:33.000000000 -0500
+++ linux-2.6.16.gentoo/include/asm-ia64/compat.h	2006-03-25 13:41:26.000000000 -0500
@@ -189,11 +189,13 @@
 	return (void __user *) (unsigned long) uptr;
 }
 
+#ifdef __KERNEL__
 static __inline__ void __user *
 compat_alloc_user_space (long len)
 {
 	struct pt_regs *regs = task_pt_regs(current);
 	return (void __user *) (((regs->r12 & 0xffffffff) & -16) - len);
 }
+#endif
 
 #endif /* _ASM_IA64_COMPAT_H */
--- linux-2.6.16/include/linux/compat.h	2006-03-25 21:02:49.000000000 +0000
+++ linux-2.6.16/include/linux/compat.h	2006-03-25 20:54:26.000000000 +0000
@@ -12,6 +12,12 @@
 #include <linux/param.h>	/* for HZ */
 #include <linux/sem.h>
 
+#ifdef __USE_MISC
+#undef st_atime
+#undef st_mtime
+#undef st_ctime
+#endif
+
 #include <asm/compat.h>
 #include <asm/siginfo.h>
 
@@ -132,7 +138,7 @@
 long compat_sys_shmctl(int first, int second, void __user *uptr);
 long compat_sys_semtimedop(int semid, struct sembuf __user *tsems,
 		unsigned nsems, const struct compat_timespec __user *timeout);
-asmlinkage long compat_sys_keyctl(u32 option,
+asmlinkage long compat_sys_keyctl(__u32 option,
 			      u32 arg2, u32 arg3, u32 arg4, u32 arg5);
 
 asmlinkage ssize_t compat_sys_readv(unsigned long fd,