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>
This commit is contained in:
Родитель
6d14f5c702
Коммит
bfc3cac0c7
|
@ -302,7 +302,7 @@ int smack_populate_secattr(struct smack_known *skp);
|
|||
/*
|
||||
* Shared data.
|
||||
*/
|
||||
extern int smack_enabled;
|
||||
extern int smack_enabled __initdata;
|
||||
extern int smack_cipso_direct;
|
||||
extern int smack_cipso_mapped;
|
||||
extern struct smack_known *smack_net_ambient;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче