smack: smk_ipv6_port_list should be static
authorGeliang Tang <geliangtang@163.com>
Sun, 27 Sep 2015 15:10:25 +0000 (23:10 +0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Fri, 9 Oct 2015 22:13:08 +0000 (15:13 -0700)
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>
security/smack/smack_lsm.c

index 996c889564383a4725e57a769b24abb53225cd50..f02438cc6d295e832cc4df1fa024beb03fb515e5 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;