summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2018-04-14 20:47:41 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-19 06:00:44 +0200
commit0cac8e1bba60d785d53350ab44856d9b1c4f1648 (patch)
tree76955a4f980fc069dbbc0d4e749b438ce51047ff /drivers/scsi/sg.c
parentscsi: zorro_esp: New driver for Amiga Zorro NCR53C9x boards (diff)
downloadlinux-0cac8e1bba60d785d53350ab44856d9b1c4f1648.tar.xz
linux-0cac8e1bba60d785d53350ab44856d9b1c4f1648.zip
scsi: sg: Change return type to vm_fault_t
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> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r--drivers/scsi/sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index c198b96368dd..c2b7d347ede4 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -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;