From: Ingo Molnar Date: Mon, 27 Mar 2006 09:16:12 +0000 (-0800) Subject: [PATCH] parisc: add ptr_to_compat() X-Git-Tag: v2.6.17-rc1~385 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=213b63b76a823e622d87df623aaec1119acaeaa0;p=linux-2.6-omap-h63xx.git [PATCH] parisc: add ptr_to_compat() Add ptr_to_compat() to parisc - needed by the new robust futex code. Signed-off-by: Ingo Molnar Cc: Kyle McMartin Cc: Grant Grundler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-parisc/compat.h b/include/asm-parisc/compat.h index 38b918feead..289624d8b2d 100644 --- a/include/asm-parisc/compat.h +++ b/include/asm-parisc/compat.h @@ -138,6 +138,11 @@ static inline void __user *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) { struct pt_regs *regs = ¤t->thread.regs;