linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clocksource/drivers/ixp4xx: Fix build warning
@ 2019-05-10 14:36 YueHaibing
  0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2019-05-10 14:36 UTC (permalink / raw)
  To: linusw, kaloz, khalasa, daniel.lezcano, tglx
  Cc: linux-kernel, linux-arm-kernel, YueHaibing

Fix gcc build warning:

drivers/clocksource/timer-ixp4xx.c:78:20:
 warning: 'ixp4xx_read_sched_clock' defined but not used [-Wunused-function]

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/clocksource/timer-ixp4xx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clocksource/timer-ixp4xx.c b/drivers/clocksource/timer-ixp4xx.c
index 404445b..96a72e5 100644
--- a/drivers/clocksource/timer-ixp4xx.c
+++ b/drivers/clocksource/timer-ixp4xx.c
@@ -75,10 +75,12 @@ to_ixp4xx_timer(struct clock_event_device *evt)
 	return container_of(evt, struct ixp4xx_timer, clkevt);
 }
 
+#ifdef CONFIG_ARM
 static u64 notrace ixp4xx_read_sched_clock(void)
 {
 	return __raw_readl(local_ixp4xx_timer->base + IXP4XX_OSTS_OFFSET);
 }
+#endif
 
 static u64 ixp4xx_clocksource_read(struct clocksource *c)
 {
-- 
2.7.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-10 14:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-10 14:36 [PATCH] clocksource/drivers/ixp4xx: Fix build warning YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).