[linux-yocto] [PATCH 09/10] kernel/time: Fix Compiler Warnings when PREEMPT_RT_FULL & !SMP

Daniel Dragomir daniel.dragomir at windriver.com
Tue May 17 15:50:45 PDT 2016


From: John Jacques <john.jacques at intel.com>

Signed-off-by: John Jacques <john.jacques at intel.com>
---
 kernel/time/timer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index c68ba87..0e0e875 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1087,7 +1087,10 @@ int try_to_del_timer_sync(struct timer_list *timer)
 EXPORT_SYMBOL(try_to_del_timer_sync);
 
 #if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT_RT_FULL)
+
+#if defined(CONFIG_SMP)
 static DEFINE_PER_CPU(struct tvec_base, __tvec_bases);
+#endif
 
 /**
  * del_timer_sync - deactivate a timer and wait for the handler to finish.
-- 
1.9.1



More information about the linux-yocto mailing list