summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2017-02-27 22:14:19 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-19 19:29:18 +0300
commit48ac34666ff76843d8743db1cc78b303759916f1 (patch)
tree4a44a13177bcdb5e513bda83d830480e4b26262b /scripts/objdiff
parentd1e4f01d09b88c6df3e9f6b8ca5f1a3882069ccc (diff)
downloadlinux-48ac34666ff76843d8743db1cc78b303759916f1.tar.xz
hlist_add_tail_rcu disable sparse warning
sparse is unhappy about this code in hlist_add_tail_rcu: struct hlist_node *i, *last = NULL; for (i = hlist_first_rcu(h); i; i = hlist_next_rcu(i)) last = i; This is because hlist_next_rcu and hlist_next_rcu return __rcu pointers. It's a false positive - it's a write side primitive and so does not need to be called in a read side critical section. The following trivial patch disables the warning without changing the behaviour in any way. Note: __hlist_for_each_rcu would also remove the warning but it would be confusing since it calls rcu_derefence and is designed to run in the rcu read side critical section. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions