From: Ingo Molnar Date: Mon, 27 Mar 2006 09:16:06 +0000 (-0800) Subject: [PATCH] ia64: add ptr_to_compat() X-Git-Tag: v2.6.17-rc1~387 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66e863acd7f2fb02fef709d5f0ab069445d4a58c;p=linux-2.6 [PATCH] ia64: add ptr_to_compat() Add ptr_to_compat() to ia64 - needed by the robust-futex code. Signed-off-by: Ingo Molnar Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-ia64/compat.h b/include/asm-ia64/compat.h index c0b1910666..40d01d8061 100644 --- a/include/asm-ia64/compat.h +++ b/include/asm-ia64/compat.h @@ -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) {