diff options
Diffstat (limited to 'arch/x86/mm/fault.c')
| -rw-r--r-- | arch/x86/mm/fault.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 2aafa6ab6103..b9123c497e0a 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -16,6 +16,7 @@  #include <linux/prefetch.h>		/* prefetchw			*/  #include <linux/context_tracking.h>	/* exception_enter(), ...	*/  #include <linux/uaccess.h>		/* faulthandler_disabled()	*/ +#include <linux/mm_types.h>  #include <asm/cpufeature.h>		/* boot_cpu_has, ...		*/  #include <asm/traps.h>			/* dotraplinkage, ...		*/ @@ -317,8 +318,6 @@ static noinline int vmalloc_fault(unsigned long address)  	if (!(address >= VMALLOC_START && address < VMALLOC_END))  		return -1; -	WARN_ON_ONCE(in_nmi()); -  	/*  	 * Synchronize this task's top level page-table  	 * with the 'reference' page table. @@ -1001,7 +1000,7 @@ do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address,  static noinline void  mm_fault_error(struct pt_regs *regs, unsigned long error_code, -	       unsigned long address, u32 *pkey, unsigned int fault) +	       unsigned long address, u32 *pkey, vm_fault_t fault)  {  	if (fatal_signal_pending(current) && !(error_code & X86_PF_USER)) {  		no_context(regs, error_code, address, 0, 0); @@ -1215,7 +1214,7 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code,  	struct vm_area_struct *vma;  	struct task_struct *tsk;  	struct mm_struct *mm; -	int fault, major = 0; +	vm_fault_t fault, major = 0;  	unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE;  	u32 pkey;  |