| From | Pranith Kumar <> | Subject | [PATCH 05/16] rcu: Add noreturn attribute to boost kthread | Date | Wed, 23 Jul 2014 01:09:42 -0400 |
| |
rcu_boost_kthread() runs in an infinite loop and does not return. This commit adds the __noreturn attribute to the function.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> --- kernel/rcu/tree_plugin.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index bac9797..dd53247 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -1222,7 +1222,7 @@ static int rcu_boost(struct rcu_node *rnp) * Priority-boosting kthread. One per leaf rcu_node and one for the * root rcu_node. */ -static int rcu_boost_kthread(void *arg) +static __noreturn int rcu_boost_kthread(void *arg) { struct rcu_node *rnp = (struct rcu_node *)arg; int spincnt = 0; @@ -1250,7 +1250,6 @@ static int rcu_boost_kthread(void *arg) } /* NOTREACHED */ trace_rcu_utilization(TPS("End boost kthread@notreached")); - return 0; } /* -- 2.0.0.rc2
|