[PATCH] clocksource/drivers/tegra186: depend on WATCHDOG_CORE=y
From: Pengpeng Hou
Date: Thu Dec 03 2026 - 21:05:12 EST
The Tegra186 timer's built-in code references watchdog core routines.
Its current dependency allows a modular provider for those references.
Require WATCHDOG_CORE=y for this driver. The already-valid built-in
configuration remains available.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 110a25357584 ("clocksource/drivers/tegra186: Put Kconfig option 'tristate' to 'bool'")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
On x86-64 with COMPILE_TEST, the timer was selectable with a modular
watchdog core before the change and was excluded afterwards. A built-in
watchdog core still allowed the timer. This was a configuration test; no
target binary was built.
drivers/clocksource/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index da83483296d5a0aacb9b857b0cb02626f0e1bd0b..e30175dc2e08d69716f55ad0578218047486a174 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -189,7 +189,7 @@ config TEGRA_TIMER
config TEGRA186_TIMER
bool "NVIDIA Tegra186 timer driver"
depends on ARCH_TEGRA || COMPILE_TEST
- depends on WATCHDOG && WATCHDOG_CORE
+ depends on WATCHDOG && WATCHDOG_CORE=y
help
Enables support for the timers and watchdogs found on NVIDIA
Tegra186 and later SoCs.
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106