From: Paul E. McKenney Date: Thu, 17 May 2018 18:21:20 +0000 (-0700) Subject: rcu: Remove unused local variable "cpu" X-Git-Tag: v4.19-rc1~214^2^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab6b82147f471e31d9397c95d523631b6c8953f2;p=thirdparty%2Fkernel%2Flinux.git rcu: Remove unused local variable "cpu" One danger of using __maybe_unused is that the compiler doesn't yell at you when you remove the last reference, witness rcu_bind_gp_kthread() and its local variable "cpu". This commit removes this local variable. Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 75a91d58b8f71..2cc9bf0d363a8 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -2670,8 +2670,6 @@ static bool rcu_nohz_full_cpu(struct rcu_state *rsp) */ static void rcu_bind_gp_kthread(void) { - int __maybe_unused cpu; - if (!tick_nohz_full_enabled()) return; housekeeping_affine(current, HK_FLAG_RCU);