Commit bfc3cac0 authored by Austin Kim's avatar Austin Kim Committed by Casey Schaufler

smack: mark 'smack_enabled' global variable as __initdata

Mark 'smack_enabled' as __initdata
since it is only used during initialization code.
Signed-off-by: default avatarAustin Kim <austin.kim@lge.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent 6d14f5c7
...@@ -302,7 +302,7 @@ int smack_populate_secattr(struct smack_known *skp); ...@@ -302,7 +302,7 @@ int smack_populate_secattr(struct smack_known *skp);
/* /*
* Shared data. * Shared data.
*/ */
extern int smack_enabled; extern int smack_enabled __initdata;
extern int smack_cipso_direct; extern int smack_cipso_direct;
extern int smack_cipso_mapped; extern int smack_cipso_mapped;
extern struct smack_known *smack_net_ambient; extern struct smack_known *smack_net_ambient;
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
static DEFINE_MUTEX(smack_ipv6_lock); static DEFINE_MUTEX(smack_ipv6_lock);
static LIST_HEAD(smk_ipv6_port_list); static LIST_HEAD(smk_ipv6_port_list);
struct kmem_cache *smack_rule_cache; struct kmem_cache *smack_rule_cache;
int smack_enabled; int smack_enabled __initdata;
#define A(s) {"smack"#s, sizeof("smack"#s) - 1, Opt_##s} #define A(s) {"smack"#s, sizeof("smack"#s) - 1, Opt_##s}
static struct { static struct {
......
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