powerpc: bad_page_fault get registers from regs
[sfrench/cifs-2.6.git] / arch / powerpc / mm / fault.c
index 273ff845eccf6a0928000b78588b33d79a4933f0..5dd3248b47c73f4e479c3830155c29628b984721 100644 (file)
@@ -566,7 +566,7 @@ NOKPROBE_SYMBOL(do_page_fault);
  * It is called from the DSI and ISI handlers in head.S and from some
  * of the procedures in traps.c.
  */
-void __bad_page_fault(struct pt_regs *regs, unsigned long address, int sig)
+void __bad_page_fault(struct pt_regs *regs, int sig)
 {
        int is_write = page_fault_is_write(regs->dsisr);
 
@@ -604,7 +604,7 @@ void __bad_page_fault(struct pt_regs *regs, unsigned long address, int sig)
        die("Kernel access of bad area", regs, sig);
 }
 
-void bad_page_fault(struct pt_regs *regs, unsigned long address, int sig)
+void bad_page_fault(struct pt_regs *regs, int sig)
 {
        const struct exception_table_entry *entry;
 
@@ -613,5 +613,5 @@ void bad_page_fault(struct pt_regs *regs, unsigned long address, int sig)
        if (entry)
                instruction_pointer_set(regs, extable_fixup(entry));
        else
-               __bad_page_fault(regs, address, sig);
+               __bad_page_fault(regs, sig);
 }