]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rcu: Remove unused local variable "cpu"
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 17 May 2018 18:21:20 +0000 (11:21 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:39:17 +0000 (15:39 -0700)
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 <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree_plugin.h

index 75a91d58b8f71a6667aaa6e1573ae087836f21f7..2cc9bf0d363a8a918a48e0eb79fe87278f74e2f0 100644 (file)
@@ -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);