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>
Fri, 12 Aug 2016 16:00:05 +0000 (18:00 +0200)
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 a35fe7f7fca67f1ca77c82af256fbdf7af940f81..534428e417715b5cd357da5fa81065a35a61165b 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;