diff options
author | Austin Kim <austin.kim@lge.com> | 2021-06-29 14:41:44 +0100 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2021-07-20 10:34:59 -0700 |
commit | bfc3cac0c76126995737f1b858d2cdb476be5b1d (patch) | |
tree | 4e2718bde7f78d825096a760166b5ea5c57e8201 /security/smack/smack_lsm.c | |
parent | 6d14f5c7028eea70760df284057fe198ce7778dd (diff) |
smack: mark 'smack_enabled' global variable as __initdata
Mark 'smack_enabled' as __initdata
since it is only used during initialization code.
Signed-off-by: Austin Kim <austin.kim@lge.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack/smack_lsm.c')
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 223a6da0e6dc..cacbe7518519 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -54,7 +54,7 @@ static DEFINE_MUTEX(smack_ipv6_lock); static LIST_HEAD(smk_ipv6_port_list); struct kmem_cache *smack_rule_cache; -int smack_enabled; +int smack_enabled __initdata; #define A(s) {"smack"#s, sizeof("smack"#s) - 1, Opt_##s} static struct { |