lkml.org 
[lkml]   [2021]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH rt-devel] softirq: timer_threads can be static
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@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
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,
\
 
 \ /
  Last update: 2021-12-04 15:44    [W:0.030 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site