aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/mm/fault.c')
-rw-r--r--arch/riscv/mm/fault.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/mm/fault.c b/arch/riscv/mm/fault.c
index 148c98ca9b45..88401d5125bc 100644
--- a/arch/riscv/mm/fault.c
+++ b/arch/riscv/mm/fault.c
@@ -41,7 +41,8 @@ asmlinkage void do_page_fault(struct pt_regs *regs)
41 struct mm_struct *mm; 41 struct mm_struct *mm;
42 unsigned long addr, cause; 42 unsigned long addr, cause;
43 unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE; 43 unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE;
44 int fault, code = SEGV_MAPERR; 44 int code = SEGV_MAPERR;
45 vm_fault_t fault;
45 46
46 cause = regs->scause; 47 cause = regs->scause;
47 addr = regs->sbadaddr; 48 addr = regs->sbadaddr;