Commit 57671886 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86: Remove unused function

Remove unused get_cr2 function (from i386)
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3b7e02f8
......@@ -405,15 +405,6 @@ void die_nmi(char *str, struct pt_regs *regs)
do_exit(SIGSEGV);
}
static inline unsigned long get_cr2(void)
{
unsigned long address;
/* get the address */
__asm__("movq %%cr2,%0":"=r" (address));
return address;
}
static void do_trap(int trapnr, int signr, char *str,
struct pt_regs * regs, long error_code, siginfo_t *info)
{
......
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