[PATCH] clocksource/drivers/arm_arch_timer: Make the read_sched_clock_is_arch_counter() stub inline

Will Deacon will at kernel.org
Tue Dec 1 04:24:20 PST 2026


On Sun, 29 Nov 2026 20:29:25 -0500, Sasha Levin wrote:
> The !CONFIG_ARM_ARCH_TIMER stub of read_sched_clock_is_arch_counter() is
> a plain static function in a header. A file that includes
> <clocksource/arm_arch_timer.h> without the arch timer enabled and does
> not call it gets an unused function, which breaks x86_64 allmodconfig
> (COMPILE_TEST builds of rpmh-rsc.c and qcom_stats.c with CONFIG_WERROR):
> 
>   In file included from drivers/soc/qcom/rpmh-rsc.c:30:
>   include/clocksource/arm_arch_timer.h:113:13: error: 'read_sched_clock_is_arch_counter' defined but not used [-Werror=unused-function]
> 
> [...]

Applied to arm64 (for-next/perf), thanks!

[1/1] clocksource/drivers/arm_arch_timer: Make the read_sched_clock_is_arch_counter() stub inline
      https://git.kernel.org/arm64/c/f7d880a40325

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list