aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/mm/fault.c')
-rw-r--r--arch/arc/mm/fault.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c
index b884bbd6f354..db6913094be3 100644
--- a/arch/arc/mm/fault.c
+++ b/arch/arc/mm/fault.c
@@ -15,6 +15,7 @@
15#include <linux/uaccess.h> 15#include <linux/uaccess.h>
16#include <linux/kdebug.h> 16#include <linux/kdebug.h>
17#include <linux/perf_event.h> 17#include <linux/perf_event.h>
18#include <linux/mm_types.h>
18#include <asm/pgalloc.h> 19#include <asm/pgalloc.h>
19#include <asm/mmu.h> 20#include <asm/mmu.h>
20 21
@@ -66,7 +67,8 @@ void do_page_fault(unsigned long address, struct pt_regs *regs)
66 struct task_struct *tsk = current; 67 struct task_struct *tsk = current;
67 struct mm_struct *mm = tsk->mm; 68 struct mm_struct *mm = tsk->mm;
68 siginfo_t info; 69 siginfo_t info;
69 int fault, ret; 70 int ret;
71 vm_fault_t fault;
70 int write = regs->ecr_cause & ECR_C_PROTV_STORE; /* ST/EX */ 72 int write = regs->ecr_cause & ECR_C_PROTV_STORE; /* ST/EX */
71 unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE; 73 unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE;
72 74