Commit 7d128ac7 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

[PATCH] 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: default avatarOleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent afc62cbf
...@@ -358,16 +358,7 @@ static inline void die_if_kernel(const char * str, struct pt_regs * regs, long e ...@@ -358,16 +358,7 @@ static inline void die_if_kernel(const char * str, struct pt_regs * regs, long e
die(str, regs, err); die(str, regs, err);
} }
static inline unsigned long get_cr2(void) static void do_trap(int trapnr, int signr, char *str, int vm86,
{
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,
struct pt_regs * regs, long error_code, siginfo_t *info) struct pt_regs * regs, long error_code, siginfo_t *info)
{ {
if (regs->eflags & VM_MASK) { if (regs->eflags & VM_MASK) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment