Commit 9ee68814 authored by Yue Haibing's avatar Yue Haibing Committed by Paul Moore

lockdown: Make lockdown_lsmid static

Fix sparse warning:

security/lockdown/lockdown.c:79:21: warning:
 symbol 'lockdown_lsmid' was not declared. Should it be static?
Signed-off-by: default avatarYue Haibing <yuehaibing@huawei.com>
Reviewed-by: default avatarKees Cook <kees@kernel.org>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 63dff3e4
...@@ -76,7 +76,7 @@ static struct security_hook_list lockdown_hooks[] __ro_after_init = { ...@@ -76,7 +76,7 @@ static struct security_hook_list lockdown_hooks[] __ro_after_init = {
LSM_HOOK_INIT(locked_down, lockdown_is_locked_down), LSM_HOOK_INIT(locked_down, lockdown_is_locked_down),
}; };
const struct lsm_id lockdown_lsmid = { static const struct lsm_id lockdown_lsmid = {
.name = "lockdown", .name = "lockdown",
.id = LSM_ID_LOCKDOWN, .id = LSM_ID_LOCKDOWN,
}; };
......
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