rcu: Add missing __releases() annotation
authorJules Irenge <jbi.octave@gmail.com>
Wed, 28 Apr 2021 23:12:19 +0000 (00:12 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 13 May 2021 16:13:23 +0000 (09:13 -0700)
commitc70360c3343f975bd066b6b98159d93f1bd4219f
tree92fbb94faa019f023ff4521c453bbfb6abbaac67
parent0223846010750e28e4330f1beefb5564ba406ef7
rcu: Add missing __releases() annotation

Sparse reports a warning at rcu_print_task_stall():

"warning: context imbalance in rcu_print_task_stall - unexpected unlock"

The root cause is a missing annotation on rcu_print_task_stall().

This commit therefore adds the missing __releases(rnp->lock) annotation.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_stall.h