Messages in this thread Patch in this message | | | From | YueHaibing <> | Subject | [PATCH] clocksource/drivers/ixp4xx: Fix build warning | Date | Fri, 10 May 2019 22:36:09 +0800 |
| |
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
| |