BACKPORT: smack: smk_ipv6_port_list should be static
authorGeliang Tang <geliangtang@163.com>
Sun, 27 Sep 2015 15:10:25 +0000 (23:10 +0800)
committerRafal Krypa <r.krypa@samsung.com>
Mon, 21 Nov 2016 16:02:06 +0000 (17:02 +0100)
Fixes the following sparse warning:

 security/smack/smack_lsm.c:55:1: warning: symbol 'smk_ipv6_port_list'
 was not declared. Should it be static?

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream 8b549ef42a26f4ef604a9ede84f0260103942727)

security/smack/smack_lsm.c

index d857914c813cc81163fcfd5de4aa0b6728cf6f96..4088d6c581941b238b532d394b79cc42f379f8dc 100644 (file)
@@ -52,7 +52,7 @@
 #define SMK_SENDING    2
 
 #ifdef SMACK_IPV6_PORT_LABELING
-LIST_HEAD(smk_ipv6_port_list);
+static LIST_HEAD(smk_ipv6_port_list);
 #endif
 static struct kmem_cache *smack_inode_cache;
 int smack_enabled;