diff options
author | Geliang Tang <geliangtang@163.com> | 2015-09-27 17:10:25 +0200 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2015-10-10 00:13:08 +0200 |
commit | 8b549ef42a26f4ef604a9ede84f0260103942727 (patch) | |
tree | 54df3addbf04a8ead64b406af473eed18c48b731 | |
parent | Smack: fix a NULL dereference in wrong smack_import_entry() usage (diff) | |
download | linux-8b549ef42a26f4ef604a9ede84f0260103942727.tar.xz linux-8b549ef42a26f4ef604a9ede84f0260103942727.zip |
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 <geliangtang@163.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |