]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: fix annotations for rht_for_each_entry_rcu()
authorThomas Graf <tgraf@suug.ch>
Wed, 13 Aug 2014 14:38:31 +0000 (16:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 22:13:39 +0000 (15:13 -0700)
commit922596e114b94133a4d4cae226ce59d040855872
treec04384f2ba1a9d07431c1705bc0f3462066c1f25
parenta9f0d909e47c5daf185bbbdc51b29548567f1924
rhashtable: fix annotations for rht_for_each_entry_rcu()

Call rcu_deference_raw() directly from within rht_for_each_entry_rcu()
as list_for_each_entry_rcu() does.

Fixes the following sparse warnings:
net/netlink/af_netlink.c:2906:25:    expected struct rhash_head const *__mptr
net/netlink/af_netlink.c:2906:25:    got struct rhash_head [noderef] <asn:4>*<noident>

Fixes: 5f18ca185e81b1e ("netlink: Convert netlink_lookup() to use RCU protected hash table")
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h