From: Ingo Molnar 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 --- include/asm-parisc/compat.h | 5 +++++ 1 files changed, 5 insertions(+) diff -puN include/asm-parisc/compat.h~parisc-add-ptr-compatpatch include/asm-parisc/compat.h --- devel/include/asm-parisc/compat.h~parisc-add-ptr-compatpatch 2006-02-21 17:00:37.000000000 -0800 +++ devel-akpm/include/asm-parisc/compat.h 2006-02-21 17:00:37.000000000 -0800 @@ -138,6 +138,11 @@ static inline void __user *compat_ptr(co 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; _