Skip to contentSkip to conversation

make selinux_parse_opts_str() static

PATCH Applied Adrian Bunk 3 participants 3 messages Mar 17, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make selinux_parse_opts_str() static

This patch makes the needlessly global selinux_parse_opts_str() static.

---
42740a04634e3a4362a688b29ad31ee87c940ff7 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 4bf4807..41a049f 100644

security/selinux/hooks.c +2 -1
@@ -800,7 +800,8 @@ static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb,
 	mutex_unlock(&newsbsec->lock);
 }
 
-int selinux_parse_opts_str(char *options, struct security_mnt_opts *opts)
+static int selinux_parse_opts_str(char *options,
+				  struct security_mnt_opts *opts)
 {
 	char *p;
 	char *context = NULL, *defcontext = NULL;
#1 lore raw
Quoted 3 lines · Adrian Bunk

This patch makes the needlessly global selinux_parse_opts_str() static.

Ack-ed by: Eric Paris <[email protected]>

whoops, sorry.

Quoted 16 lines

---
42740a04634e3a4362a688b29ad31ee87c940ff7 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 4bf4807..41a049f 100644

security/selinux/hooks.c +2 -1
@@ -800,7 +800,8 @@ static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb,
 	mutex_unlock(&newsbsec->lock);
 }
 
-int selinux_parse_opts_str(char *options, struct security_mnt_opts *opts)
+static int selinux_parse_opts_str(char *options,
+				  struct security_mnt_opts *opts)
 {
 	char *p;
 	char *context = NULL, *defcontext = NULL;
Applied
#2 lore raw
Quoted 6 lines · Eric Paris
Quoted 3 lines · Adrian Bunk

This patch makes the needlessly global selinux_parse_opts_str() static.

Ack-ed by: Eric Paris <[email protected]>

ITYM Acked-by :-)

Applied to for-linus.

Quoted 20 lines

whoops, sorry.

Quoted 16 lines

---
42740a04634e3a4362a688b29ad31ee87c940ff7 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 4bf4807..41a049f 100644

security/selinux/hooks.c +2 -1
@@ -800,7 +800,8 @@ static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb,
 	mutex_unlock(&newsbsec->lock);
 }
 
-int selinux_parse_opts_str(char *options, struct security_mnt_opts *opts)
+static int selinux_parse_opts_str(char *options,
+				  struct security_mnt_opts *opts)
 {
 	char *p;
 	char *context = NULL, *defcontext = NULL;
Signature · 2 lines
James Morris
<[email protected]>