summaryrefslogtreecommitdiff
path: root/security/lockdown
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2024-08-14 06:30:04 +0300
committerPaul Moore <paul@paul-moore.com>2024-08-15 19:11:42 +0300
commit9ee6881454345c4bb518e9478415b32731da9858 (patch)
tree67daea252779c956e75e1a028437589738f06b97 /security/lockdown
parent63dff3e48871b0583be5032ff8fb7260c349a18c (diff)
downloadlinux-9ee6881454345c4bb518e9478415b32731da9858.tar.xz
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>
Diffstat (limited to 'security/lockdown')
-rw-r--r--security/lockdown/lockdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/lockdown/lockdown.c b/security/lockdown/lockdown.c
index cd84d8ea1dfb..f2bdbd55aa2b 100644
--- a/security/lockdown/lockdown.c
+++ b/security/lockdown/lockdown.c
@@ -76,7 +76,7 @@ static struct security_hook_list lockdown_hooks[] __ro_after_init = {
LSM_HOOK_INIT(locked_down, lockdown_is_locked_down),
};
-const struct lsm_id lockdown_lsmid = {
+static const struct lsm_id lockdown_lsmid = {
.name = "lockdown",
.id = LSM_ID_LOCKDOWN,
};