X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-ia64%2Fcompat.h;h=40d01d80610d0c148019ce77b9f4e37a553a65f8;hb=8a102eed9c4e1d21bad07a8fd97bd4fbf125d966;hp=c0b19106665ca1d45bc0e8e3c20bd76190a981e1;hpb=bf785ee0aeea7a3e717cb1e11df4135b6cbde7da;p=powerpc.git diff --git a/include/asm-ia64/compat.h b/include/asm-ia64/compat.h index c0b1910666..40d01d8061 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) {