From: Ronald Claveau Date: Tue, 2 Jun 2026 14:19:20 +0000 (+0200) Subject: thermal/drivers/amlogic: Add missing dependency on MESON_SM X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=5f1e4f65d3002a814c690434f1dd37facc1df6ca;p=thirdparty%2Fkernel%2Flinux.git thermal/drivers/amlogic: Add missing dependency on MESON_SM The amlogic thermal driver calls meson_sm_get() and meson_sm_get_thermal_calib() which are exported by the meson_sm driver. Without CONFIG_MESON_SM enabled, the build fails with undefined references to these symbols. Add a proper Kconfig dependency on MESON_SM instead of relying on stub functions, which makes the dependency explicit and prevents invalid configurations. Closes: https://lore.kernel.org/oe-kbuild-all/202605291530.en7aGn7w-lkp@intel.com/ Reported-by: Mark Brown Reported-by: kernel test robot Signed-off-by: Ronald Claveau Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/oe-kbuild-all/202605291530.en7aGn7w-lkp@intel.com/ Link: https://patch.msgid.link/20260602-fix-missing-meson_sm-symbol-v3-1-6f7f69cd7d6c@aliel.fr --- diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index b10080d618604..40a376cf99368 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -436,6 +436,7 @@ config AMLOGIC_THERMAL tristate "Amlogic Thermal Support" default ARCH_MESON depends on OF && ARCH_MESON + depends on MESON_SM help If you say yes here you get support for Amlogic Thermal for G12 SoC Family.