diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2006-02-21 02:05:11 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-03-21 08:27:46 -0500 |
commit | 219ac73a7ad17a3ae3d5c07b4fc8c280645a073a (patch) | |
tree | debe814488e9e36ac0870f2c97af23d229a2570e /include | |
parent | b1bcb362d921f5e46a3bec0c7a73c32abfe74db2 (diff) |
[MIPS] Further sparsification for 32-bit compat code.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/compat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-mips/compat.h b/include/asm-mips/compat.h index 35d2604fe69c..0012bd804d2d 100644 --- a/include/asm-mips/compat.h +++ b/include/asm-mips/compat.h | |||
@@ -128,17 +128,17 @@ typedef u32 compat_sigset_word; | |||
128 | */ | 128 | */ |
129 | typedef u32 compat_uptr_t; | 129 | typedef u32 compat_uptr_t; |
130 | 130 | ||
131 | static inline void *compat_ptr(compat_uptr_t uptr) | 131 | static inline void __user *compat_ptr(compat_uptr_t uptr) |
132 | { | 132 | { |
133 | return (void *)(long)uptr; | 133 | return (void __user *)(long)uptr; |
134 | } | 134 | } |
135 | 135 | ||
136 | static inline void *compat_alloc_user_space(long len) | 136 | static inline void __user *compat_alloc_user_space(long len) |
137 | { | 137 | { |
138 | struct pt_regs *regs = (struct pt_regs *) | 138 | struct pt_regs *regs = (struct pt_regs *) |
139 | ((unsigned long) current_thread_info() + THREAD_SIZE - 32) - 1; | 139 | ((unsigned long) current_thread_info() + THREAD_SIZE - 32) - 1; |
140 | 140 | ||
141 | return (void *) (regs->regs[29] - len); | 141 | return (void __user *) (regs->regs[29] - len); |
142 | } | 142 | } |
143 | #if defined (__MIPSEL__) | 143 | #if defined (__MIPSEL__) |
144 | #define __COMPAT_ENDIAN_SWAP__ 1 | 144 | #define __COMPAT_ENDIAN_SWAP__ 1 |