From: Jules Irenge Date: Wed, 28 Apr 2021 23:12:19 +0000 (+0100) Subject: rcu: Add missing __releases() annotation X-Git-Tag: accepted/tizen/unified/20230118.172025~6901^2^3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c70360c3343f975bd066b6b98159d93f1bd4219f;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h index e6bd518..ffb8cf6 100644 --- a/kernel/rcu/tree_stall.h +++ b/kernel/rcu/tree_stall.h @@ -314,6 +314,7 @@ static void rcu_print_detail_task_stall_rnp(struct rcu_node *rnp) * tasks blocked within RCU read-side critical sections. */ static int rcu_print_task_stall(struct rcu_node *rnp, unsigned long flags) + __releases(rnp->lock) { raw_spin_unlock_irqrestore_rcu_node(rnp, flags); return 0;