Skip to contentSkip to conversation

rcu-tasks: make rcu_tasks_lazy_ms static

PATCH Applied Jiapeng Chong 3 participants 3 messages Aug 3, 2023 RCU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rcu-tasks: make rcu_tasks_lazy_ms static

The rcu_tasks_lazy_ms are not used outside the file tasks.h, so the modification is defined as static.

kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static?

---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +1 -1
index 83049a893de5..ee1379671798 100644
@@ -1084,7 +1084,7 @@ void rcu_barrier_tasks(void)
 }
 EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
 
-int rcu_tasks_lazy_ms = -1;
+static int rcu_tasks_lazy_ms = -1;
 module_param(rcu_tasks_lazy_ms, int, 0444);
 
 static int __init rcu_spawn_tasks_kthread(void)
Signature · 1 line
2.20.1.7.g153144c
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jiapeng Chong

The rcu_tasks_lazy_ms are not used outside the file tasks.h, so the modification is defined as static.

kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static?

- Joel

Quoted 20 lines
---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +1 -2
index 83049a893de5..ee1379671798 100644
@@ -1084,7 +1084,7 @@ void rcu_barrier_tasks(void)
 }
 EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
 
-int rcu_tasks_lazy_ms = -1;
+static int rcu_tasks_lazy_ms = -1;
 module_param(rcu_tasks_lazy_ms, int, 0444);
 
 static int __init rcu_spawn_tasks_kthread(void)
--

2.20.1.7.g153144c

maintainer Applied
#2 lore raw
Quoted 6 lines · Joel Fernandes
Quoted 4 lines · Jiapeng Chong

The rcu_tasks_lazy_ms are not used outside the file tasks.h, so the modification is defined as static.

Quoted 7 lines
Quoted 5 lines

kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static?

Queued, thank you both!

Thanx, Paul

Quoted 23 lines

- Joel

Quoted 20 lines
---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +1 -2
index 83049a893de5..ee1379671798 100644
@@ -1084,7 +1084,7 @@ void rcu_barrier_tasks(void)
 }
 EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
 
-int rcu_tasks_lazy_ms = -1;
+static int rcu_tasks_lazy_ms = -1;
 module_param(rcu_tasks_lazy_ms, int, 0444);
 
 static int __init rcu_spawn_tasks_kthread(void)
--

2.20.1.7.g153144c