[1/1] thermal: Fix build error of missing devm_ioremap_resource on UM
diff mbox series

Message ID 1556531256-26321-1-git-send-email-talel@amazon.com
State Accepted
Delegated to: Eduardo Valentin
Headers show
  • [1/1] thermal: Fix build error of missing devm_ioremap_resource on UM
Related show

Commit Message

Talel Shenhar April 29, 2019, 9:47 a.m. UTC
The devres.o gets linked if HAS_IOMEM is present so on ARCH=um
allyesconfig (COMPILE_TEST) failed on many files with:

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 <lkp@intel.com>
Signed-off-by: Talel Shenhar <talel@amazon.com>
 drivers/thermal/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 41f3943..66a709d 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -203,6 +203,7 @@  config THERMAL_EMULATION
 	tristate "Generic Thermal MMIO driver"
 	depends on OF || COMPILE_TEST
+	depends on HAS_IOMEM
 	  This option enables the generic thermal MMIO driver that will use
 	  memory-mapped reads to get the temperature.  Any HW/System that