From: Geliang Tang Date: Sun, 27 Sep 2015 15:10:25 +0000 (+0800) Subject: BACKPORT: smack: smk_ipv6_port_list should be static X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f95624a6da93b93f15c4a71c79df169d39fa8eb;p=platform%2Fkernel%2Flinux-stable.git BACKPORT: smack: smk_ipv6_port_list should be static 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 Acked-by: Casey Schaufler (cherry-picked from upstream 8b549ef42a26f4ef604a9ede84f0260103942727) --- diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index b03563536258..a83554471e8c 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -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;