From: Ingo Molnar 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 --- include/asm-ia64/compat.h | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN include/asm-ia64/compat.h~ia64-add-ptr-to-compatpatch include/asm-ia64/compat.h --- devel/include/asm-ia64/compat.h~ia64-add-ptr-to-compatpatch 2006-02-21 17:00:33.000000000 -0800 +++ devel-akpm/include/asm-ia64/compat.h 2006-02-21 17:00:33.000000000 -0800 @@ -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) { _