scsi: sg: Change return type to vm_fault_t
authorSouptick Joarder <[email protected]>
Sat, 14 Apr 2018 18:47:41 +0000 (00:17 +0530)
committerMartin K. Petersen <[email protected]>
Thu, 19 Apr 2018 04:00:44 +0000 (00:00 -0400)
Use new return type vm_fault_t for fault handler in struct
vm_operations_struct.

Signed-off-by: Souptick Joarder <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Acked-by: Douglas Gilbert <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/sg.c

index c198b96368dd69beba2dcffbe16efe7a3c74ae1d..c2b7d347ede4c065f8b86b0bc31b01c37fa16c87 100644 (file)
@@ -1192,7 +1192,7 @@ sg_fasync(int fd, struct file *filp, int mode)
        return fasync_helper(fd, filp, mode, &sfp->async_qp);
 }
 
-static int
+static vm_fault_t
 sg_vma_fault(struct vm_fault *vmf)
 {
        struct vm_area_struct *vma = vmf->vma;