mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
tick/broadcast: Fix warning about undefined tick_broadcast_oneshot_offline()
Randconfig builds with
CONFIG_TICK_ONESHOT=y
CONFIG_HOTPLUG_CPU=n
trigger
kernel/time/tick-broadcast.c:39:13: warning: ‘tick_broadcast_oneshot_offline’ \
declared ‘static’ but never defined [-Wunused-function]
due to that function's definition missing.
Move the CONFIG_HOTPLUG_CPU ifdeffery around its declaration too.
Fixes: 1b72d43237 ("tick: Remove outgoing CPU from broadcast masks")
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Cc: Valentin Schneider <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
1 parent
7a8e61f847
commit
aba0954327
1 file changed
+4
@@ -36,12 +36,16 @@ static __cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK(tick_broadcast_lock);
|
||||
static void tick_broadcast_setup_oneshot(struct clock_event_device *bc);
|
||||
static void tick_broadcast_clear_oneshot(int cpu);
|
||||
static void tick_resume_broadcast_oneshot(struct clock_event_device *bc);
|
||||
# ifdef CONFIG_HOTPLUG_CPU
|
||||
static void tick_broadcast_oneshot_offline(unsigned int cpu);
|
||||
# endif
|
||||
#else
|
||||
static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc) { BUG(); }
|
||||
static inline void tick_broadcast_clear_oneshot(int cpu) { }
|
||||
static inline void tick_resume_broadcast_oneshot(struct clock_event_device *bc) { }
|
||||
# ifdef CONFIG_HOTPLUG_CPU
|
||||
static inline void tick_broadcast_oneshot_offline(unsigned int cpu) { }
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user