]> git.hungrycats.org Git - linux/commitdiff
[PATCH] selinux: mark avc_init with __init
authorAndrew Morton <akpm@osdl.org>
Mon, 16 Feb 2004 02:06:36 +0000 (18:06 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 16 Feb 2004 02:06:36 +0000 (18:06 -0800)
From: James Morris <jmorris@redhat.com>

The avc_init function is only called during kernel init, so it can be
marked with __init.

security/selinux/avc.c
security/selinux/include/avc.h

index cb9192fe31ee411f9af5e9be43b56b4d39786927..222fadc9c0d86efffa751a4101bb90e896247df6 100644 (file)
@@ -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;
index 81589c7b0ca86d0e0bb046c018b61b5b5ef09b95..8394616175c3a7666442bf9c961928c902c76c44 100644 (file)
@@ -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);