xen: Change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Sat, 14 Apr 2018 19:15:42 +0000 (00:45 +0530)
committerJuergen Gross <jgross@suse.com>
Mon, 14 May 2018 12:41:34 +0000 (14:41 +0200)
Use new return type vm_fault_t for fault handler
in struct vm_operations_struct.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/privcmd.c

index 1c90918..0a778d3 100644 (file)
@@ -801,7 +801,7 @@ static void privcmd_close(struct vm_area_struct *vma)
        kfree(pages);
 }
 
-static int privcmd_fault(struct vm_fault *vmf)
+static vm_fault_t privcmd_fault(struct vm_fault *vmf)
 {
        printk(KERN_DEBUG "privcmd_fault: vma=%p %lx-%lx, pgoff=%lx, uv=%p\n",
               vmf->vma, vmf->vma->vm_start, vmf->vma->vm_end,