security: selinux: Change return type to vm_fault_t
authorSouptick Joarder <jrdr.linux@gmail.com>
Sat, 14 Apr 2018 15:32:41 +0000 (21:02 +0530)
committerPaul Moore <paul@paul-moore.com>
Mon, 16 Apr 2018 22:16:00 +0000 (18:16 -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: Paul Moore <paul@paul-moore.com>
security/selinux/selinuxfs.c

index 2451603..6128f52 100644 (file)
@@ -453,7 +453,7 @@ out:
        return ret;
 }
 
-static int sel_mmap_policy_fault(struct vm_fault *vmf)
+static vm_fault_t sel_mmap_policy_fault(struct vm_fault *vmf)
 {
        struct policy_load_memory *plm = vmf->vma->vm_file->private_data;
        unsigned long offset;