From: Paul E. McKenney <paulmck@kernel.org>
Date: Wed, 17 May 2023 12:20:03 +0000 (-0700)
Subject: rcu-tasks: Remove redundant #ifdef CONFIG_TASKS_RCU
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5ae769c611e7d77c1d945cb132140deb93a32d49;p=linux.git

rcu-tasks: Remove redundant #ifdef CONFIG_TASKS_RCU

The kernel/rcu/tasks.h file has a #endif immediately followed by an

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---

diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
index c88d7fe29d92a..7eae67fbe47c1 100644
--- a/kernel/rcu/tasks.h
+++ b/kernel/rcu/tasks.h
@@ -146,9 +146,7 @@ static struct rcu_tasks rt_name =							\
 #ifdef CONFIG_TASKS_RCU
 /* Track exiting tasks in order to allow them to be waited for. */
 DEFINE_STATIC_SRCU(tasks_rcu_exit_srcu);
-#endif
 
-#ifdef CONFIG_TASKS_RCU
 /* Report delay in synchronize_srcu() completion in rcu_tasks_postscan(). */
 static void tasks_rcu_exit_srcu_stall(struct timer_list *unused);
 static DEFINE_TIMER(tasks_rcu_exit_srcu_stall_timer, tasks_rcu_exit_srcu_stall);