Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yue Haibing and committed by
Paul Moore
9ee68814 63dff3e4

+1 -1
+1 -1
security/lockdown/lockdown.c
··· 76 76 LSM_HOOK_INIT(locked_down, lockdown_is_locked_down), 77 77 }; 78 78 79 - const struct lsm_id lockdown_lsmid = { 79 + static const struct lsm_id lockdown_lsmid = { 80 80 .name = "lockdown", 81 81 .id = LSM_ID_LOCKDOWN, 82 82 };