From: Thomas Graf Date: Wed, 13 Aug 2014 14:38:31 +0000 (+0200) Subject: rhashtable: fix annotations for rht_for_each_entry_rcu() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~59^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f560811e80216e98f3fcec220aa0f8836b09af;p=pandora-kernel.git 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] * Fixes: e341694e3eb57fc ("netlink: Convert netlink_lookup() to use RCU protected hash table") Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed