From: Talel Shenhar Date: Mon, 29 Apr 2019 09:47:36 +0000 (+0300) Subject: thermal: Fix build error of missing devm_ioremap_resource on UM X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6ec8070b9d48294fbe865535c167a79527eaf357;p=linux.git thermal: Fix build error of missing devm_ioremap_resource on UM The devres.o gets linked if HAS_IOMEM is present so on ARCH=um allyesconfig (COMPILE_TEST) failed on many files with: drivers/thermal/thermal_mmio.o: In function 'thermal_mmio_probe':thermal_mmio.c:(.text+0xe1): undefined reference to `devm_ioremap_resource' The users of devm_ioremap_resource() which are compile-testable should depend on HAS_IOMEM. Reported-by: kbuild test robot Signed-off-by: Talel Shenhar Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 41f3943bfe96f..66a709d5d6b92 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -203,6 +203,7 @@ config THERMAL_EMULATION config THERMAL_MMIO tristate "Generic Thermal MMIO driver" depends on OF || COMPILE_TEST + depends on HAS_IOMEM help This option enables the generic thermal MMIO driver that will use memory-mapped reads to get the temperature. Any HW/System that