Skip to contentSkip to conversation

clocksource: timer-ti-dm: Make omap_dm_timer_set_load_start static

PATCH New Yue Haibing 2 participants 2 messages Mar 22, 2019 Clocksource, clockevent drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: timer-ti-dm: Make omap_dm_timer_set_load_start static

From: YueHaibing <[email protected]>

Fix sparse warning:

drivers/clocksource/timer-ti-dm.c:589:5: warning:
symbol 'omap_dm_timer_set_load_start' was not declared. Should it be static?

---
 drivers/clocksource/timer-ti-dm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clocksource/timer-ti-dm.c +2 -2
index c364027..3352da6 100644
@@ -586,8 +586,8 @@ static int omap_dm_timer_set_load(struct omap_dm_timer *timer, int autoreload,
 }
 
 /* Optimized set_load which removes costly spin wait in timer_start */
-int omap_dm_timer_set_load_start(struct omap_dm_timer *timer, int autoreload,
-                            unsigned int load)
+static int omap_dm_timer_set_load_start(struct omap_dm_timer *timer,
+					int autoreload, unsigned int load)
 {
 	u32 l;
 
Signature · 1 line
2.7.0
#1 lore raw

[tip:timers/urgent] clocksource/drivers/timer-ti-dm: Make omap_dm_timer_set_load_start() static

clocksource/drivers/timer-ti-dm: Make omap_dm_timer_set_load_start() static
Commit-ID:  008258d995a637c77c10a5d087d134eed49a6572
Gitweb:     https://git.kernel.org/tip/008258d995a637c77c10a5d087d134eed49a6572
Author:     YueHaibing <[email protected]>
AuthorDate: Fri, 22 Mar 2019 22:43:02 +0800
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Fri, 22 Mar 2019 22:59:33 +0100

clocksource/drivers/timer-ti-dm: Make omap_dm_timer_set_load_start() static

Fix sparse warning:

drivers/clocksource/timer-ti-dm.c:589:5: warning:
symbol 'omap_dm_timer_set_load_start' was not declared. Should it be static?

---
 drivers/clocksource/timer-ti-dm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clocksource/timer-ti-dm.c +2 -2
index c364027638e1..3352da6ed61f 100644
@@ -586,8 +586,8 @@ static int omap_dm_timer_set_load(struct omap_dm_timer *timer, int autoreload,
 }
 
 /* Optimized set_load which removes costly spin wait in timer_start */
-int omap_dm_timer_set_load_start(struct omap_dm_timer *timer, int autoreload,
-                            unsigned int load)
+static int omap_dm_timer_set_load_start(struct omap_dm_timer *timer,
+					int autoreload, unsigned int load)
 {
 	u32 l;