diff options
author | 2016-06-27 15:02:45 -0400 | |
---|---|---|
committer | 2016-06-27 15:02:45 -0400 | |
commit | 96a8f7f88d4e540e6342ed313c52f6977e4ccc54 (patch) | |
tree | aa0587311504239822a75df967607ac562bae429 /net/netlabel/netlabel_unlabeled.c | |
parent | selinux: fix type mismatch (diff) | |
download | linux-96a8f7f88d4e540e6342ed313c52f6977e4ccc54.tar.gz linux-96a8f7f88d4e540e6342ed313c52f6977e4ccc54.tar.bz2 linux-96a8f7f88d4e540e6342ed313c52f6977e4ccc54.zip |
netlabel: Mark rcu pointers with __rcu.
This fixes sparse errors of the form:
incompatible types in comparison expression (different address spaces)
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'net/netlabel/netlabel_unlabeled.c')
-rw-r--r-- | net/netlabel/netlabel_unlabeled.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlabel/netlabel_unlabeled.c b/net/netlabel/netlabel_unlabeled.c index 9eaa9a1e8629..ca590d2a01b0 100644 --- a/net/netlabel/netlabel_unlabeled.c +++ b/net/netlabel/netlabel_unlabeled.c @@ -116,8 +116,8 @@ struct netlbl_unlhsh_walk_arg { static DEFINE_SPINLOCK(netlbl_unlhsh_lock); #define netlbl_unlhsh_rcu_deref(p) \ rcu_dereference_check(p, lockdep_is_held(&netlbl_unlhsh_lock)) -static struct netlbl_unlhsh_tbl *netlbl_unlhsh; -static struct netlbl_unlhsh_iface *netlbl_unlhsh_def; +static struct netlbl_unlhsh_tbl __rcu *netlbl_unlhsh; +static struct netlbl_unlhsh_iface __rcu *netlbl_unlhsh_def; /* Accept unlabeled packets flag */ static u8 netlabel_unlabel_acceptflg; |