Re: linux-next: build warning after merge of the arm-soc tree

From: Linus Walleij
Date: Fri May 03 2019 - 02:50:14 EST


On Tue, Apr 30, 2019 at 12:28 AM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:

> After merging the arm-soc tree, today's linux-next build
> (x86_64 allmodconfig) produced this warning:
>
> drivers/clocksource/timer-ixp4xx.c:78:20: warning: 'ixp4xx_read_sched_clock' defined but not used [-Wunused-function]
> static u64 notrace ixp4xx_read_sched_clock(void)
> ^~~~~~~~~~~~~~~~~~~~~~~

This is kind of normal for timer drivers, as the sched_clock() call is #ifdef:ed
for CONFIG_ARM, it is not uniformly available on all archs. This appears
as a side effect of COMPILE_TEST which I think is fair to produce
things like this.

Yours,
Linus Walleij