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>
Thu, 3 Nov 2016 16:42:05 +0000 (17:42 +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 b03563536258923d776659d8176ecc045002d5b5..a83554471e8cefbe2a77cf559cd8732fe2fcb922 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;