]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
scsi: target: Change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Sat, 14 Apr 2018 18:55:57 +0000 (00:25 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Apr 2018 04:49:37 +0000 (00:49 -0400)
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>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c

index 4ad89ea71a70118dad2e5d960f89f54431a1ad67..d6af29250d94994e95bdfdb35d54e53a575d58c8 100644 (file)
@@ -1382,7 +1382,7 @@ static struct page *tcmu_try_get_block_page(struct tcmu_dev *udev, uint32_t dbi)
        return page;
 }
 
-static int tcmu_vma_fault(struct vm_fault *vmf)
+static vm_fault_t tcmu_vma_fault(struct vm_fault *vmf)
 {
        struct tcmu_dev *udev = vmf->vma->vm_private_data;
        struct uio_info *info = &udev->uio_info;