[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190510143609.29236-1-yuehaibing@huawei.com>
Date: Fri, 10 May 2019 22:36:09 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <linusw@...nel.org>, <kaloz@...nwrt.org>, <khalasa@...p.pl>,
<daniel.lezcano@...aro.org>, <tglx@...utronix.de>
CC: <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH] clocksource/drivers/ixp4xx: Fix build warning
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@...wei.com>
Signed-off-by: YueHaibing <yuehaibing@...wei.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
Powered by blists - more mailing lists