* [2.6 patch] security/seclvl.c: make some code static
@ 2004-11-28 18:56 Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2004-11-28 18:56 UTC (permalink / raw)
To: Michael A. Halcrow, Serge Hallyn; +Cc: linux-kernel
The patch below makes some needlessly global code static.
diffstat output:
security/seclvl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc2-mm3-full/security/seclvl.c.old 2004-11-28 03:32:23.000000000 +0100
+++ linux-2.6.10-rc2-mm3-full/security/seclvl.c 2004-11-28 03:34:28.000000000 +0100
@@ -170,7 +170,7 @@
/**
* Callback function pointers for show and store
*/
-struct sysfs_ops seclvlfs_sysfs_ops = {
+static struct sysfs_ops seclvlfs_sysfs_ops = {
.show = seclvl_attr_show,
.store = seclvl_attr_store,
};
@@ -275,7 +275,7 @@
}
/* Generate sysfs_attr_seclvl */
-struct seclvl_attribute sysfs_attr_seclvl =
+static struct seclvl_attribute sysfs_attr_seclvl =
__ATTR(seclvl, (S_IFREG | S_IRUGO | S_IWUSR), seclvl_read_file,
seclvl_write_file);
@@ -386,7 +386,7 @@
}
/* Generate sysfs_attr_passwd */
-struct seclvl_attribute sysfs_attr_passwd =
+static struct seclvl_attribute sysfs_attr_passwd =
__ATTR(passwd, (S_IFREG | S_IRUGO | S_IWUSR), seclvl_read_passwd,
seclvl_write_passwd);
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] security/seclvl.c: make some code static
@ 2005-01-23 10:16 Adrian Bunk
2005-01-23 22:59 ` Chris Wright
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2005-01-23 10:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: Michael A. Halcrow, Serge Hallyn, linux-kernel
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
security/seclvl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
This patch was already sent on:
- 28 Nov 2004
--- linux-2.6.10-rc2-mm3-full/security/seclvl.c.old 2004-11-28 03:32:23.000000000 +0100
+++ linux-2.6.10-rc2-mm3-full/security/seclvl.c 2004-11-28 03:34:28.000000000 +0100
@@ -170,7 +170,7 @@
/**
* Callback function pointers for show and store
*/
-struct sysfs_ops seclvlfs_sysfs_ops = {
+static struct sysfs_ops seclvlfs_sysfs_ops = {
.show = seclvl_attr_show,
.store = seclvl_attr_store,
};
@@ -275,7 +275,7 @@
}
/* Generate sysfs_attr_seclvl */
-struct seclvl_attribute sysfs_attr_seclvl =
+static struct seclvl_attribute sysfs_attr_seclvl =
__ATTR(seclvl, (S_IFREG | S_IRUGO | S_IWUSR), seclvl_read_file,
seclvl_write_file);
@@ -386,7 +386,7 @@
}
/* Generate sysfs_attr_passwd */
-struct seclvl_attribute sysfs_attr_passwd =
+static struct seclvl_attribute sysfs_attr_passwd =
__ATTR(passwd, (S_IFREG | S_IRUGO | S_IWUSR), seclvl_read_passwd,
seclvl_write_passwd);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] security/seclvl.c: make some code static
2005-01-23 10:16 [2.6 patch] security/seclvl.c: make some code static Adrian Bunk
@ 2005-01-23 22:59 ` Chris Wright
0 siblings, 0 replies; 3+ messages in thread
From: Chris Wright @ 2005-01-23 22:59 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Andrew Morton, Michael A. Halcrow, Serge Hallyn, linux-kernel
* Adrian Bunk (bunk@stusta.de) wrote:
> This patch makes some needlessly global code static.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
ACK, I'll push this up if Andrew doesn't grab it.
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-23 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23 10:16 [2.6 patch] security/seclvl.c: make some code static Adrian Bunk
2005-01-23 22:59 ` Chris Wright
-- strict thread matches above, loose matches on Subject: below --
2004-11-28 18:56 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox