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: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Yue Haibing 2024-08-14 11:30:04 +08:00 committed by Paul Moore
parent 63dff3e488
commit 9ee6881454

View File

@ -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,
}; };