Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-15 18:06:36 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-15 18:06:36 -0800
commite76445c88353f558aa49c4f52b4d0a713959eef8 (patch)
tree306d9b2d2b7372cac80fd2594753ce208bed1174
parentfa419e62bd6dc02439e5bd912112564f10e2902d (diff)
[PATCH] selinux: mark avc_init with __init
From: James Morris <jmorris@redhat.com> The avc_init function is only called during kernel init, so it can be marked with __init.
-rw-r--r--security/selinux/avc.c2
-rw-r--r--security/selinux/include/avc.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c
index cb9192fe31ee..222fadc9c0d8 100644
--- a/security/selinux/avc.c
+++ b/security/selinux/avc.c
@@ -166,7 +166,7 @@ void avc_dump_query(u32 ssid, u32 tsid, u16 tclass)
*
* Initialize the access vector cache.
*/
-void avc_init(void)
+void __init avc_init(void)
{
struct avc_node *new;
int i;
diff --git a/security/selinux/include/avc.h b/security/selinux/include/avc.h
index 81589c7b0ca8..8394616175c3 100644
--- a/security/selinux/include/avc.h
+++ b/security/selinux/include/avc.h
@@ -11,6 +11,7 @@
#include <linux/kernel.h>
#include <linux/kdev_t.h>
#include <linux/spinlock.h>
+#include <linux/init.h>
#include <asm/system.h>
#include "flask.h"
#include "av_permissions.h"
@@ -121,7 +122,7 @@ void avc_dump_cache(char *tag);
* AVC operations
*/
-void avc_init(void);
+void __init avc_init(void);
int avc_lookup(u32 ssid, u32 tsid, u16 tclass,
u32 requested, struct avc_entry_ref *aeref);