projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f2bfe2
)
smack: smk_ipv6_port_list should be static
author
Geliang Tang
<geliangtang@163.com>
Sun, 27 Sep 2015 15:10:25 +0000
(23:10 +0800)
committer
Casey 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
patch
|
blob
|
blame
|
history
diff --git
a/security/smack/smack_lsm.c
b/security/smack/smack_lsm.c
index 996c889564383a4725e57a769b24abb53225cd50..f02438cc6d295e832cc4df1fa024beb03fb515e5 100644
(file)
--- 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;