mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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>
This commit is contained in:
committed by
David S. Miller
parent
c252aa3e8e
commit
e4edbe3c1f
@@ -223,7 +223,7 @@ static int rhashtable_rehash_one(struct rhashtable *ht,
|
||||
struct bucket_table *new_tbl = rhashtable_last_table(ht, old_tbl);
|
||||
int err = -EAGAIN;
|
||||
struct rhash_head *head, *next, *entry;
|
||||
struct rhash_head **pprev = NULL;
|
||||
struct rhash_head __rcu **pprev = NULL;
|
||||
unsigned int new_hash;
|
||||
|
||||
if (new_tbl->nest)
|
||||
@@ -486,7 +486,7 @@ static void *rhashtable_lookup_one(struct rhashtable *ht,
|
||||
.ht = ht,
|
||||
.key = key,
|
||||
};
|
||||
struct rhash_head **pprev = NULL;
|
||||
struct rhash_head __rcu **pprev = NULL;
|
||||
struct rhash_head *head;
|
||||
int elasticity;
|
||||
|
||||
|
Reference in New Issue
Block a user