[<prev] [next>] [day] [month] [year] [list]
Message-Id: <480E1EE3.76E4.0078.0@novell.com>
Date: Tue, 22 Apr 2008 16:22:43 +0100
From: "Jan Beulich" <jbeulich@...ell.com>
To: <mingo@...e.hu>, <tglx@...utronix.de>, <hpa@...or.com>
Cc: <linux-kernel@...r.kernel.org>
Subject: [PATCH] x86-64: eliminate dead code
Signed-off-by: Jan Beulich <jbeulich@...ell.com>
---
arch/x86/kernel/entry_64.S | 4 ----
arch/x86/kernel/traps_64.c | 3 ---
2 files changed, 7 deletions(-)
--- linux-2.6.25/arch/x86/kernel/entry_64.S 2008-04-17 04:49:44.000000000 +0200
+++ 2.6.25-x86_64-dead-code/arch/x86/kernel/entry_64.S 2008-04-15 10:49:20.000000000 +0200
@@ -1122,10 +1122,6 @@ ENTRY(coprocessor_segment_overrun)
zeroentry do_coprocessor_segment_overrun
END(coprocessor_segment_overrun)
-ENTRY(reserved)
- zeroentry do_reserved
-END(reserved)
-
/* runs on exception stack */
ENTRY(double_fault)
XCPT_FRAME
--- linux-2.6.25/arch/x86/kernel/traps_64.c 2008-04-17 04:49:44.000000000 +0200
+++ 2.6.25-x86_64-dead-code/arch/x86/kernel/traps_64.c 2008-04-15 10:49:20.000000000 +0200
@@ -69,7 +69,6 @@ asmlinkage void general_protection(void)
asmlinkage void page_fault(void);
asmlinkage void coprocessor_error(void);
asmlinkage void simd_coprocessor_error(void);
-asmlinkage void reserved(void);
asmlinkage void alignment_check(void);
asmlinkage void machine_check(void);
asmlinkage void spurious_interrupt_bug(void);
@@ -694,12 +693,10 @@ DO_ERROR_INFO( 0, SIGFPE, "divide error
DO_ERROR( 4, SIGSEGV, "overflow", overflow)
DO_ERROR( 5, SIGSEGV, "bounds", bounds)
DO_ERROR_INFO( 6, SIGILL, "invalid opcode", invalid_op, ILL_ILLOPN, regs->ip)
-DO_ERROR( 7, SIGSEGV, "device not available", device_not_available)
DO_ERROR( 9, SIGFPE, "coprocessor segment overrun", coprocessor_segment_overrun)
DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS)
DO_ERROR(11, SIGBUS, "segment not present", segment_not_present)
DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, 0)
-DO_ERROR(18, SIGSEGV, "reserved", reserved)
/* Runs on IST stack */
asmlinkage void do_stack_segment(struct pt_regs *regs, long error_code)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists