X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sparc64%2Fcompat.h;h=874b136ded9081747f292c510f586de129028547;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=02af9130ad1d3c62a405693ea8334b79a0b006b8;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-sparc64/compat.h b/include/asm-sparc64/compat.h index 02af9130a..874b136de 100644 --- a/include/asm-sparc64/compat.h +++ b/include/asm-sparc64/compat.h @@ -116,12 +116,12 @@ typedef u32 compat_sigset_word; */ typedef u32 compat_uptr_t; -static inline void *compat_ptr(compat_uptr_t uptr) +static inline void __user *compat_ptr(compat_uptr_t uptr) { - return (void *)(unsigned long)uptr; + return (void __user *)(unsigned long)uptr; } -static __inline__ void *compat_alloc_user_space(long len) +static __inline__ void __user *compat_alloc_user_space(long len) { struct pt_regs *regs = current_thread_info()->kregs; unsigned long usp = regs->u_regs[UREG_I6]; @@ -129,7 +129,7 @@ static __inline__ void *compat_alloc_user_space(long len) if (!(test_thread_flag(TIF_32BIT))) usp += STACK_BIAS; - return (void *) (usp - len); + return (void __user *) (usp - len); } #endif /* _ASM_SPARC64_COMPAT_H */