]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sample/vfio-mdev: Change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Wed, 4 Jul 2018 15:30:14 +0000 (21:00 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 4 Jul 2018 16:42:04 +0000 (10:42 -0600)
convert mbochs_region_vm_fault and mbochs_dmabuf_vm_fault
to return vm_fault_t type.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/vfio-mdev/mbochs.c

index 85ac6037696fd178dcd66d213773cae4ff825b93..d5d5a499160c106427592e809cd7955b947fcd55 100644 (file)
@@ -657,7 +657,7 @@ static void mbochs_put_pages(struct mdev_state *mdev_state)
        dev_dbg(dev, "%s: %d pages released\n", __func__, count);
 }
 
-static int mbochs_region_vm_fault(struct vm_fault *vmf)
+static vm_fault_t mbochs_region_vm_fault(struct vm_fault *vmf)
 {
        struct vm_area_struct *vma = vmf->vma;
        struct mdev_state *mdev_state = vma->vm_private_data;
@@ -695,7 +695,7 @@ static int mbochs_mmap(struct mdev_device *mdev, struct vm_area_struct *vma)
        return 0;
 }
 
-static int mbochs_dmabuf_vm_fault(struct vm_fault *vmf)
+static vm_fault_t mbochs_dmabuf_vm_fault(struct vm_fault *vmf)
 {
        struct vm_area_struct *vma = vmf->vma;
        struct mbochs_dmabuf *dmabuf = vma->vm_private_data;