summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2019-04-11 21:52:07 -0400
committerDavid S. Miller <davem@davemloft.net>2019-04-12 20:34:45 -0400
commite4edbe3c1f44c84f319149aeb998e7e36b3b897f (patch)
tree147388b269b9b7d4418235592ecfabb4c092d262 /lib
parentc252aa3e8ed3ac54060b1838f6a47f29799a133d (diff)
rhashtable: fix some __rcu annotation errors
With these annotations, the rhashtable now gets no warnings when compiled with "C=1" for sparse checking. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/rhashtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c
index 9c84f5cef69c..e387ceb00e86 100644
--- a/lib/rhashtable.c
+++ b/lib/rhashtable.c
@@ -223,7 +223,7 @@ static int rhashtable_rehash_one(struct rhashtable *ht,
223 struct bucket_table *new_tbl = rhashtable_last_table(ht, old_tbl); 223 struct bucket_table *new_tbl = rhashtable_last_table(ht, old_tbl);
224 int err = -EAGAIN; 224 int err = -EAGAIN;
225 struct rhash_head *head, *next, *entry; 225 struct rhash_head *head, *next, *entry;
226 struct rhash_head **pprev = NULL; 226 struct rhash_head __rcu **pprev = NULL;
227 unsigned int new_hash; 227 unsigned int new_hash;
228 228
229 if (new_tbl->nest) 229 if (new_tbl->nest)
@@ -486,7 +486,7 @@ static void *rhashtable_lookup_one(struct rhashtable *ht,
486 .ht = ht, 486 .ht = ht,
487 .key = key, 487 .key = key,
488 }; 488 };
489 struct rhash_head **pprev = NULL; 489 struct rhash_head __rcu **pprev = NULL;
490 struct rhash_head *head; 490 struct rhash_head *head;
491 int elasticity; 491 int elasticity;
492 492