From: Arnd Bergmann Date: Wed, 9 Apr 2025 15:53:08 +0000 (+0200) Subject: clocksource/drivers/atmel_tcb: Fix kconfig dependency X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b8239054194ad67aff7d244185ef46890c5ae71a;p=users%2Fdwmw2%2Flinux.git clocksource/drivers/atmel_tcb: Fix kconfig dependency Build-testing this driver on arm without CONFIG_OF produces a warning: drivers/clocksource/timer-atmel-tcb.c:368:34: error: 'atmel_tcb_of_match' defined but not used [-Werror=unused-const-variable=] 368 | static const struct of_device_id atmel_tcb_of_match[] = { | ^~~~~~~~~~~~~~~~~~ Change the dependency to require CONFIG_OF for build testing to avoid the warning. Testing remains possible on all architectures as CONFIG_OF is user-selectable. Cc: Nicolas Ferre Cc: Claudiu Beznea Reviewed-by: Alexandre Belloni Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20250409155313.1096915-1-arnd@kernel.org Signed-off-by: Daniel Lezcano --- diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 2861b2c896311..3b63a2874f56a 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -437,8 +437,8 @@ config ATMEL_ST config ATMEL_TCB_CLKSRC bool "Atmel TC Block timer driver" if COMPILE_TEST - depends on ARM && HAS_IOMEM - select TIMER_OF if OF + depends on ARM && OF && HAS_IOMEM + select TIMER_OF help Support for Timer Counter Blocks on Atmel SoCs.