diff mbox

security: selinux: Change return type to vm_fault_t

Message ID 20180414153241.GA17844@jordon-HP-15-Notebook-PC (mailing list archive)
State Accepted
Headers show

Commit Message

Souptick Joarder April 14, 2018, 3:32 p.m. UTC
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>
---
 security/selinux/selinuxfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
1.9.1

Comments

Paul Moore April 16, 2018, 10:18 p.m. UTC | #1
On Sat, Apr 14, 2018 at 11:32 AM, Souptick Joarder <jrdr.linux@gmail.com> 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>
> ---
>  security/selinux/selinuxfs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Merged, thanks.

> diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
> index 00eed84..dfc31c6 100644
> --- a/security/selinux/selinuxfs.c
> +++ b/security/selinux/selinuxfs.c
> @@ -418,7 +418,7 @@ static ssize_t sel_read_policy(struct file *filp, char __user *buf,
>         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;
> --
> 1.9.1
diff mbox

Patch

diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
index 00eed84..dfc31c6 100644
--- a/security/selinux/selinuxfs.c
+++ b/security/selinux/selinuxfs.c
@@ -418,7 +418,7 @@  static ssize_t sel_read_policy(struct file *filp, char __user *buf,
 	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;