Skip to contentSkip to conversation

clocksource: stm32: introduce dependency on HAS_IOMEM

PATCH In review Nicolai Stange 1 participant 2 messages Jun 21, 2015 – Jun 22, 2015 Clocksource, clockevent drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: stm32: introduce dependency on HAS_IOMEM

Fix allmodconfig compilation failer for ARCH=um:
drivers/clocksource/timer-stm32.c: In function 'stm32_clockevent_init':
drivers/clocksource/timer-stm32.c:175:2:

    error: implicit declaration of function 'iounmap'
    [-Werror=implicit-function-declaration]
      iounmap(data->base);
      ^

Make CLKSRC_STM32 depend on HAS_IOMEM.

---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clocksource/Kconfig +1 -0
index 60d7d3d..835e5c5 100644
@@ -114,6 +114,7 @@ config CLKSRC_LPC32XX
 config CLKSRC_STM32
 	bool "Clocksource for STM32 SoCs" if COMPILE_TEST
 	depends on OF
+	depends on HAS_IOMEM
 	select CLKSRC_MMIO
 
 config ARM_ARCH_TIMER
Signature · 5 lines
2.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/
#1 lore raw

Drop this patch.

1cb6c2151850 ("clocksource: Increase dependencies of timer-stm32 to
limit build wreckage")
from linux-next also fixes this, it introduces a dependency on ARM.

So, if you do not care about making the IOMEM dependency explicit, forget about it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/