tick/broadcast: Unbreak CONFIG_GENERIC_CLOCKEVENTS=n build
authorThomas Gleixner <tglx@linutronix.de>
Tue, 7 Jul 2015 19:56:34 +0000 (21:56 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 7 Jul 2015 19:56:34 +0000 (21:56 +0200)
Making tick_broadcast_oneshot_control() independent from
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST broke the build for
CONFIG_GENERIC_CLOCKEVENTS=n because the function is not defined
there.

Provide a proper stub inline.

Fixes: f32dd1170511 'tick/broadcast: Make idle check independent from mode and config'
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/tick.h

index 6916dcb61857e0a4bff3265423460d208451489c..edbfc9a5293ee48f981952eb709f0ed13e6b07c8 100644 (file)
@@ -67,7 +67,14 @@ extern void tick_broadcast_control(enum tick_broadcast_mode mode);
 static inline void tick_broadcast_control(enum tick_broadcast_mode mode) { }
 #endif /* BROADCAST */
 
+#ifdef CONFIG_GENERIC_CLOCKEVENTS
 extern int tick_broadcast_oneshot_control(enum tick_broadcast_state state);
+#else
+static inline int tick_broadcast_oneshot_control(enum tick_broadcast_state state)
+{
+       return 0;
+}
+#endif
 
 static inline void tick_broadcast_enable(void)
 {