[PATCH] clocksource/drivers/ixp4xx: Fix build warning

From: YueHaibing
Date: Fri May 10 2019 - 10:39:44 EST


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@xxxxxxxxxx>
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
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