diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-27 01:16:13 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 08:44:49 -0800 |
commit | 62ac285f3c701f0457a15fe01baa64a965c4f5f1 (patch) | |
tree | e65539e7824ca902c42723216f5725711c9968ac /include/asm-mips | |
parent | 213b63b76a823e622d87df623aaec1119acaeaa0 (diff) | |
download | kernel_samsung_espresso10-62ac285f3c701f0457a15fe01baa64a965c4f5f1.zip kernel_samsung_espresso10-62ac285f3c701f0457a15fe01baa64a965c4f5f1.tar.gz kernel_samsung_espresso10-62ac285f3c701f0457a15fe01baa64a965c4f5f1.tar.bz2 |
[PATCH] mips: add ptr_to_compat()
Add ptr_to_compat() - needed by the new robust futex code.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-mips/compat.h b/include/asm-mips/compat.h index 0012bd8..986511d 100644 --- a/include/asm-mips/compat.h +++ b/include/asm-mips/compat.h @@ -133,6 +133,11 @@ static inline void __user *compat_ptr(compat_uptr_t uptr) return (void __user *)(long)uptr; } +static inline compat_uptr_t ptr_to_compat(void __user *uptr) +{ + return (u32)(unsigned long)uptr; +} + static inline void __user *compat_alloc_user_space(long len) { struct pt_regs *regs = (struct pt_regs *) |