Skip to content

Commit 0325e8a

Browse files
Jiapeng ChongFrederic Weisbecker
authored andcommitted
rcu-tasks: Make rcu_tasks_lazy_ms static
The rcu_tasks_lazy_ms variable is not used outside the file tasks.h, so this commit marks it static. kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static? Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6086 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
1 parent e62d8ae commit 0325e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tasks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ void rcu_barrier_tasks(void)
10861086
}
10871087
EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
10881088

1089-
int rcu_tasks_lazy_ms = -1;
1089+
static int rcu_tasks_lazy_ms = -1;
10901090
module_param(rcu_tasks_lazy_ms, int, 0444);
10911091

10921092
static int __init rcu_spawn_tasks_kthread(void)

0 commit comments

Comments
 (0)