From: Jan Beulich Date: Wed, 11 Jan 2006 21:42:11 +0000 (+0100) Subject: [PATCH] x86_64: Removing unused function die_if_kernel(). X-Git-Tag: v2.6.16-rc1~384 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c617cfa6422bfba9e79d8d004303a6cc3d2e7d7;p=linux-2.6 [PATCH] x86_64: Removing unused function die_if_kernel(). Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 7ecc72a48c..0fd17e01de 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c @@ -399,11 +399,6 @@ void die(const char * str, struct pt_regs * regs, long err) oops_end(flags); do_exit(SIGSEGV); } -static inline void die_if_kernel(const char * str, struct pt_regs * regs, long err) -{ - if (!(regs->eflags & VM_MASK) && (regs->cs == __KERNEL_CS)) - die(str, regs, err); -} void die_nmi(char *str, struct pt_regs *regs) {