tick/broadcast: tick_broadcast_setup_oneshot() isn't exported
PATCH v2 1/1 tick/broadcast: tick_broadcast_setup_oneshot() isn't exported
This function isn't used outside of tick-broadcast.c, so let's mark it static.
Signed-off-by Stephen Boyd <[email protected]>
---
Changes from v1:
* Fixed the kbuild issue by moving into ifdef CONFIG_TICK_ONESHOT
kernel/time/tick-broadcast.c | 4 +++- kernel/time/tick-internal.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-)
kernel/time/tick-broadcast.c +3 -1
@@ -37,9 +37,11 @@ static int tick_broadcast_forced;static __cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK (tick_broadcast_lock );#ifdef CONFIG_TICK_ONESHOT +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);#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) { }#endif
@@ -867,7 +869,7 @@ static void tick_broadcast_init_next_event(struct cpumask *mask,/** * tick_broadcast_setup_oneshot - setup the broadcast device */ -void tick_broadcast_setup_oneshot (struct clock_event_device *bc) +static void tick_broadcast_setup_oneshot (struct clock_event_device *bc) {int cpu =smp_processor_id ();
kernel/time/tick-internal.h +0 -2
@@ -126,7 +126,6 @@ static inline int tick_check_oneshot_change(int allow_nohz) { return 0; }/* Functions related to oneshot broadcasting */ #if defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST ) && defined(CONFIG_TICK_ONESHOT ) -extern void tick_broadcast_setup_oneshot (struct clock_event_device *bc);extern void tick_broadcast_switch_to_oneshot (void );extern void tick_shutdown_broadcast_oneshot (unsigned int cpu);extern int tick_broadcast_oneshot_active (void );
@@ -134,7 +133,6 @@ extern void tick_check_oneshot_broadcast_this_cpu(void);bool tick_broadcast_oneshot_available (void );extern struct cpumask *tick_get_broadcast_oneshot_mask (void );#else /* !(BROADCAST && ONESHOT): */ -static inline void tick_broadcast_setup_oneshot (struct clock_event_device *bc) {BUG (); }static inline void tick_broadcast_switch_to_oneshot (void ) { }static inline void tick_shutdown_broadcast_oneshot (unsigned int cpu) { }static inline int tick_broadcast_oneshot_active (void ) {return 0 ; }
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
tip-bot for Stephen Boyd
merge bot[tip:timers/urgent] tick/broadcast: Make tick_broadcast_setup_oneshot() static
tick/broadcast: Make tick_broadcast_setup_oneshot() static
Commit-ID: 94114c367553f3301747e47f6947cabde947575f Gitweb: http://git.kernel.org/tip/94114c367553f3301747e47f6947cabde947575f Author: Stephen Boyd <[email protected]> AuthorDate: Wed, 7 Jun 2017 23:36:03 -0700 Committer: Thomas Gleixner <[email protected]> CommitDate: Mon, 12 Jun 2017 18:56:01 +0200
tick/broadcast: Make tick_broadcast_setup_oneshot() static
This function isn't used outside of tick-broadcast.c, so let's mark it static.
Signed-off-by Stephen Boyd <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- kernel/time/tick-broadcast.c | 4 +++- kernel/time/tick-internal.h | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-)
kernel/time/tick-broadcast.c +3 -1
@@ -37,9 +37,11 @@ static int tick_broadcast_forced;static __cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK (tick_broadcast_lock );#ifdef CONFIG_TICK_ONESHOT +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);#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) { }#endif
@@ -867,7 +869,7 @@ static void tick_broadcast_init_next_event(struct cpumask *mask,/** * tick_broadcast_setup_oneshot - setup the broadcast device */ -void tick_broadcast_setup_oneshot (struct clock_event_device *bc) +static void tick_broadcast_setup_oneshot (struct clock_event_device *bc) {int cpu =smp_processor_id ();
kernel/time/tick-internal.h +0 -2
@@ -126,7 +126,6 @@ static inline int tick_check_oneshot_change(int allow_nohz) { return 0; }/* Functions related to oneshot broadcasting */ #if defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST ) && defined(CONFIG_TICK_ONESHOT ) -extern void tick_broadcast_setup_oneshot (struct clock_event_device *bc);extern void tick_broadcast_switch_to_oneshot (void );extern void tick_shutdown_broadcast_oneshot (unsigned int cpu);extern int tick_broadcast_oneshot_active (void );
@@ -134,7 +133,6 @@ extern void tick_check_oneshot_broadcast_this_cpu(void);bool tick_broadcast_oneshot_available (void );extern struct cpumask *tick_get_broadcast_oneshot_mask (void );#else /* !(BROADCAST && ONESHOT): */ -static inline void tick_broadcast_setup_oneshot (struct clock_event_device *bc) {BUG (); }static inline void tick_broadcast_switch_to_oneshot (void ) { }static inline void tick_shutdown_broadcast_oneshot (unsigned int cpu) { }static inline int tick_broadcast_oneshot_active (void ) {return 0 ; }