2008-07-22 17:22:21

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make selinux_write_opts() static

This patch makes the needlessly global selinux_write_opts() static.

Signed-off-by: Adrian Bunk <[email protected]>

---
b75a9f11d832d4f819b69f02b615c53889faec09
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 63f131f..3179e40 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -957,7 +957,8 @@ out_err:
return rc;
}

-void selinux_write_opts(struct seq_file *m, struct security_mnt_opts *opts)
+static void selinux_write_opts(struct seq_file *m,
+ struct security_mnt_opts *opts)
{
int i;
char *prefix;


2008-07-22 18:47:36

by James Morris

[permalink] [raw]
Subject: Re: [2.6 patch] make selinux_write_opts() static

On Tue, 22 Jul 2008, Adrian Bunk wrote:

> This patch makes the needlessly global selinux_write_opts() static.
>
> Signed-off-by: Adrian Bunk <[email protected]>

Thanks.

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#devel

--
James Morris
<[email protected]>