lsm: mark the lsm_id variables are marked as static
authorPaul Moore <paul@paul-moore.com>
Fri, 10 Nov 2023 17:09:33 +0000 (12:09 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 13 Nov 2023 03:54:42 +0000 (22:54 -0500)
commitb1a867eeb8ab5e097178728b01cc504c6806acca
tree69e062069760bb4e30fcba6b3238281f64914b08
parent9ba8802c8b66fbde2ee32ab4c44cd418f9444486
lsm: mark the lsm_id variables are marked as static

As the kernel test robot helpfully reminded us, all of the lsm_id
instances defined inside the various LSMs should be marked as static.
The one exception is Landlock which uses its lsm_id variable across
multiple source files with an extern declaration in a header file.

Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/apparmor/lsm.c
security/bpf/hooks.c
security/commoncap.c
security/loadpin/loadpin.c
security/safesetid/lsm.c
security/selinux/hooks.c
security/smack/smack_lsm.c
security/tomoyo/tomoyo.c
security/yama/yama_lsm.c