diff --git a/include/asm-parisc/compat.h b/include/asm-parisc/compat.h index 38b918feead90ee9e2218d052346cef8046975a8..289624d8b2d4681cfaed6a729a5313e07b153930 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;