]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
thermal/drivers/amlogic: Add missing dependency on MESON_SM
authorRonald Claveau <linux-kernel-dev@aliel.fr>
Tue, 2 Jun 2026 14:19:20 +0000 (16:19 +0200)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Wed, 3 Jun 2026 07:12:03 +0000 (09:12 +0200)
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 <broonie@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
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
drivers/thermal/Kconfig

index b10080d618604ddd90295bff973e337ae0509059..40a376cf993682764a8a4fceec9a707d0c84ad2e 100644 (file)
@@ -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.