aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r--arch/x86/mm/fault.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index 7dc0615c3cfe..3e3661462739 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -477,7 +477,6 @@ show_fault_oops(struct pt_regs *regs, unsigned long error_code,
477 dump_pagetable(address); 477 dump_pagetable(address);
478} 478}
479 479
480#ifdef CONFIG_X86_64
481static noinline void 480static noinline void
482pgtable_bad(struct pt_regs *regs, unsigned long error_code, 481pgtable_bad(struct pt_regs *regs, unsigned long error_code,
483 unsigned long address) 482 unsigned long address)
@@ -503,7 +502,6 @@ pgtable_bad(struct pt_regs *regs, unsigned long error_code,
503 502
504 oops_end(flags, regs, sig); 503 oops_end(flags, regs, sig);
505} 504}
506#endif
507 505
508static noinline void 506static noinline void
509no_context(struct pt_regs *regs, unsigned long error_code, 507no_context(struct pt_regs *regs, unsigned long error_code,
@@ -1015,10 +1013,8 @@ void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code)
1015 local_irq_enable(); 1013 local_irq_enable();
1016 } 1014 }
1017 1015
1018#ifdef CONFIG_X86_64
1019 if (unlikely(error_code & PF_RSVD)) 1016 if (unlikely(error_code & PF_RSVD))
1020 pgtable_bad(regs, error_code, address); 1017 pgtable_bad(regs, error_code, address);
1021#endif
1022 1018
1023 /* 1019 /*
1024 * If we're in an interrupt, have no user context or are running 1020 * If we're in an interrupt, have no user context or are running