[PATCH] clocksource: add missing Kconfig dependency on OF for timer-integrator-ap

Bartosz Golaszewski posted 1 patch 3 weeks, 1 day ago
drivers/clocksource/Kconfig | 1 +
1 file changed, 1 insertion(+)
[PATCH] clocksource: add missing Kconfig dependency on OF for timer-integrator-ap
Posted by Bartosz Golaszewski 3 weeks, 1 day ago
This driver accesses the of_aliases global variable declared in
linux/of.h and defined in drivers/base/of.c. It requires OF support or
will cause a link failure. Add the missing Kconfig dependency.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index aa59e5b13351..fd9112706545 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -254,6 +254,7 @@ config KEYSTONE_TIMER
 
 config INTEGRATOR_AP_TIMER
 	bool "Integrator-AP timer driver" if COMPILE_TEST
+	depends on OF
 	select CLKSRC_MMIO
 	help
 	  Enables support for the Integrator-AP timer.
-- 
2.47.3
Re: [PATCH] clocksource: add missing Kconfig dependency on OF for timer-integrator-ap
Posted by Bartosz Golaszewski 3 weeks, 1 day ago
On Fri, Jan 16, 2026 at 12:17 PM Bartosz Golaszewski
<bartosz.golaszewski@oss.qualcomm.com> wrote:
>
> This driver accesses the of_aliases global variable declared in
> linux/of.h and defined in drivers/base/of.c. It requires OF support or
> will cause a link failure. Add the missing Kconfig dependency.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> ---

Forgot to give credit to the build bot:

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601152233.og6LdeUo-lkp@intel.com/
[tip: timers/clocksource] clocksource/drivers/timer-integrator-ap: Add missing Kconfig dependency on OF
Posted by tip-bot2 for Bartosz Golaszewski 1 week, 2 days ago
The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     2246464821e2820572e6feefca2029f17629cc50
Gitweb:        https://git.kernel.org/tip/2246464821e2820572e6feefca2029f17629cc50
Author:        Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
AuthorDate:    Fri, 16 Jan 2026 12:17:23 +01:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Tue, 20 Jan 2026 18:06:27 +01:00

clocksource/drivers/timer-integrator-ap: Add missing Kconfig dependency on OF

This driver accesses the of_aliases global variable declared in
linux/of.h and defined in drivers/base/of.c. It requires OF support or
will cause a link failure. Add the missing Kconfig dependency.

Closes: https://lore.kernel.org/oe-kbuild-all/202601152233.og6LdeUo-lkp@intel.com/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20260116111723.10585-1-bartosz.golaszewski@oss.qualcomm.com
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index aa59e5b..fd91127 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -254,6 +254,7 @@ config KEYSTONE_TIMER
 
 config INTEGRATOR_AP_TIMER
 	bool "Integrator-AP timer driver" if COMPILE_TEST
+	depends on OF
 	select CLKSRC_MMIO
 	help
 	  Enables support for the Integrator-AP timer.