Commit e76445c8 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent fa419e62
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment