]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] mips: add ptr_to_compat()
authorIngo Molnar <mingo@elte.hu>
Mon, 27 Mar 2006 09:16:13 +0000 (01:16 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:49 +0000 (08:44 -0800)
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>
include/asm-mips/compat.h

index 0012bd804d2dd02c0edeac13be81d4f497355e6d..986511db54a671d05780824a17d2aa6b09c88e98 100644 (file)
@@ -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 *)