mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] clocksource: clps711x: Make clps711x_clksrc_init static
@ 2019-03-22 14:37 Yue Haibing
  2019-03-22 22:49 ` [tip:timers/urgent] clocksource/drivers/clps711x: Make clps711x_clksrc_init() static tip-bot for YueHaibing
  0 siblings, 1 reply; 3+ messages in thread
From: Yue Haibing @ 2019-03-22 14:37 UTC (permalink / raw)
  To: daniel.lezcano, tglx, shc_work; +Cc: linux-kernel, linux-arm-kernel, YueHaibing

From: YueHaibing <yuehaibing@huawei.com>

Fix sparse warning:

drivers/clocksource/clps711x-timer.c:96:13: warning:
 symbol 'clps711x_clksrc_init' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/clocksource/clps711x-timer.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c
index a8dd805..cdc2515 100644
--- a/drivers/clocksource/clps711x-timer.c
+++ b/drivers/clocksource/clps711x-timer.c
@@ -93,8 +93,9 @@ static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base,
 			   "clps711x-timer", clkevt);
 }
 
-void __init clps711x_clksrc_init(void __iomem *tc1_base, void __iomem *tc2_base,
-				 unsigned int irq)
+static void __init clps711x_clksrc_init(void __iomem *tc1_base,
+					void __iomem *tc2_base,
+					unsigned int irq)
 {
 	struct clk *tc1 = clk_get_sys("clps711x-timer.0", NULL);
 	struct clk *tc2 = clk_get_sys("clps711x-timer.1", NULL);
-- 
2.7.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-24  6:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22 14:37 [PATCH -next] clocksource: clps711x: Make clps711x_clksrc_init static Yue Haibing
2019-03-22 22:49 ` [tip:timers/urgent] clocksource/drivers/clps711x: Make clps711x_clksrc_init() static tip-bot for YueHaibing
2019-03-24  6:20   ` Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome