Messages in this thread Patch in this message | | | Date | Wed, 17 Nov 2004 17:48:34 +0300 | From | Oleg Nesterov <> | Subject | [PATCH] trivial, uninline do_trap(), remove get_cr2() |
| |
Uninlining do_trap() saves 544 bytes in traps.o. get_cr2() seems to be unused, remove it.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 2.6.10-rc2/arch/i386/kernel/traps.c~ Tue Nov 16 14:13:08 2004 +++ 2.6.10-rc2/arch/i386/kernel/traps.c Wed Nov 17 16:47:41 2004 @@ -358,16 +358,7 @@ static inline void die_if_kernel(const c die(str, regs, err); } -static inline unsigned long get_cr2(void) -{ - unsigned long address; - - /* get the address */ - __asm__("movl %%cr2,%0":"=r" (address)); - return address; -} - -static inline void do_trap(int trapnr, int signr, char *str, int vm86, +static void do_trap(int trapnr, int signr, char *str, int vm86, struct pt_regs * regs, long error_code, siginfo_t *info) { if (regs->eflags & VM_MASK) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |