[RFC PATCH rt-devel] softirq: timer_threads can be static

From: kernel test robot
Date: Sat Dec 04 2021 - 09:43:56 EST


kernel/softirq.c:1031:27: warning: symbol 'timer_threads' was not declared. Should it be static?

Fixes: 87b7f9e13d14 ("softirq: Use a dedicated thread for timer wakeups.")
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
softirq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/softirq.c b/kernel/softirq.c
index e49fcdea145d8..0d1cc191e4f41 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -1028,7 +1028,7 @@ void raise_timer_softirq(void)
}
#endif

-struct smp_hotplug_thread timer_threads = {
+static struct smp_hotplug_thread timer_threads = {
.store = &timersd,
.setup = timersd_setup,
.thread_should_run = timersd_should_run,