X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=arch%2Fmips%2Finclude%2Fasm%2Fcompat.h;h=bbb3bc5a42fd824c8fe1657647645b8c79dcdc97;hb=c605c39677b9842b0566013e0cf30bc13e90bdbc;hp=53f015a1b0a77e88e4e9043578bf92fb09685193;hpb=c815f04ba94940fbc303a6ea9669e7da87f8e77d;p=linux-2.6-microblaze.git diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h index 53f015a1b0a7..bbb3bc5a42fd 100644 --- a/arch/mips/include/asm/compat.h +++ b/arch/mips/include/asm/compat.h @@ -96,14 +96,6 @@ struct compat_statfs { #define COMPAT_OFF_T_MAX 0x7fffffff -static inline void __user *arch_compat_alloc_user_space(long len) -{ - struct pt_regs *regs = (struct pt_regs *) - ((unsigned long) current_thread_info() + THREAD_SIZE - 32) - 1; - - return (void __user *) (regs->regs[29] - len); -} - struct compat_ipc64_perm { compat_key_t key; __compat_uid32_t uid;