]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ia64: add ptr_to_compat()
authorIngo Molnar <mingo@elte.hu>
Mon, 27 Mar 2006 09:16:06 +0000 (01:16 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:48 +0000 (08:44 -0800)
Add ptr_to_compat() to ia64 - needed by the robust-futex code.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-ia64/compat.h

index c0b19106665ca1d45bc0e8e3c20bd76190a981e1..40d01d80610d0c148019ce77b9f4e37a553a65f8 100644 (file)
@@ -189,6 +189,12 @@ compat_ptr (compat_uptr_t uptr)
        return (void __user *) (unsigned 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)
 {