From: Andy Lutomirski Date: Thu, 19 Mar 2015 01:33:34 +0000 (-0700) Subject: x86/asm/entry: Remove user_mode_vm() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7a2806741e7327a6b20ccef42e8d56588cb2fef5;p=linux-beck.git x86/asm/entry: Remove user_mode_vm() It has no callers anymore. Signed-off-by: Andy Lutomirski Cc: Borislav Petkov Cc: Brad Spengler Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/a594afd6a0bddb1311bd7c92a15201c87fbb8681.1426728647.git.luto@kernel.org Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h index 70c439f9071b..d20bae298852 100644 --- a/arch/x86/include/asm/ptrace.h +++ b/arch/x86/include/asm/ptrace.h @@ -113,11 +113,6 @@ static inline int user_mode(struct pt_regs *regs) #endif } -static inline int user_mode_vm(struct pt_regs *regs) -{ - return user_mode(regs); -} - /* * This is the fastest way to check whether regs come from user space. * It is unsafe if regs might come from vm86 mode, though -- in vm86