Message ID | 20180414184741.GA19491@jordon-HP-15-Notebook-PC (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On 2018-04-14 02:47 PM, Souptick Joarder wrote: > 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> > --- > drivers/scsi/sg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c > index c198b963..c2b7d34 100644 > --- a/drivers/scsi/sg.c > +++ b/drivers/scsi/sg.c > @@ -1192,7 +1192,7 @@ static long sg_compat_ioctl(struct file *filp, unsigned int cmd_in, unsigned lon > 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; > -- > 1.9.1 > >
Souptick, > Use new return type vm_fault_t for fault handler in struct > vm_operations_struct. Applied to 4.18/scsi-queue. Thanks!
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index c198b963..c2b7d34 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1192,7 +1192,7 @@ static long sg_compat_ioctl(struct file *filp, unsigned int cmd_in, unsigned lon 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;