make selinux_set_mnt_opts() static
PATCH 1/1 make selinux_set_mnt_opts() static
selinux_set_mnt_opts() can become static.
Signed-off-by Adrian Bunk <[email protected]>
---d9cfb159caa25ed5ad3dee35d62a6e1a0bd51ef6
security/selinux/hooks.c +2 -2
@@ -561,8 +561,8 @@ static int bad_option(struct superblock_security_struct *sbsec, char flag,* Allow filesystems with binary mount data to explicitly set mount point * labeling information. */ -int selinux_set_mnt_opts (struct super_block *sb,char **mount_options, -int *flags,int num_opts) +static int selinux_set_mnt_opts (struct super_block *sb,char **mount_options, +int *flags,int num_opts) {int rc =0 , i;struct task_security_struct *tsec = current->security;
James Morris
AppliedQuoted 4 lines · Adrian Bunk
selinux_set_mnt_opts()can become static.Signed-off-by Adrian Bunk <[email protected]>
Thanks, applied.
Quoted 18 lines
---
d9cfb159caa25ed5ad3dee35d62a6e1a0bd51ef6security/selinux/hooks.c +2
-2@@ -561,8 +561,8 @@ static int bad_option(struct superblock_security_struct *sbsec, char flag,* Allow filesystems with binary mount data to explicitly set mount point * labeling information. */ -int selinux_set_mnt_opts (struct super_block *sb,char **mount_options, -int *flags,int num_opts) +static int selinux_set_mnt_opts (struct super_block *sb,char **mount_options, +int *flags,int num_opts) {int rc =0 , i;struct task_security_struct *tsec = current->security;
Signature · 2 lines
James Morris <[email protected]>