From: Geliang Tang Date: Sun, 27 Sep 2015 15:10:25 +0000 (+0800) Subject: smack: smk_ipv6_port_list should be static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b549ef42a26f4ef604a9ede84f0260103942727;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 996c88956438..f02438cc6d29 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;