aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2023-11-10 12:09:33 -0500
committerPaul Moore <paul@paul-moore.com>2023-11-12 22:54:42 -0500
commitb1a867eeb8ab5e097178728b01cc504c6806acca (patch)
tree69e062069760bb4e30fcba6b3238281f64914b08 /security/smack
parent9ba8802c8b66fbde2ee32ab4c44cd418f9444486 (diff)
downloadlinux-b1a867eeb8ab5e097178728b01cc504c6806acca.tar.gz
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>
Diffstat (limited to 'security/smack')
-rw-r--r--security/smack/smack_lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 99664c8cf8675..53336d7daa933 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -5006,7 +5006,7 @@ struct lsm_blob_sizes smack_blob_sizes __ro_after_init = {
.lbs_xattr_count = SMACK_INODE_INIT_XATTRS,
};
-const struct lsm_id smack_lsmid = {
+static const struct lsm_id smack_lsmid = {
.name = "smack",
.id = LSM_ID_SMACK,
};