From: Ingo Molnar Date: Mon, 27 Mar 2006 09:16:06 +0000 (-0800) Subject: [PATCH] ia64: add ptr_to_compat() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66e863acd7f2fb02fef709d5f0ab069445d4a58c;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 c0b19106665c..40d01d80610d 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) {