All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clocksource: stm32: introduce dependency on HAS_IOMEM
@ 2015-06-21 20:32 Nicolai Stange
  2015-06-22 13:55 ` Nicolai Stange
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolai Stange @ 2015-06-21 20:32 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Daniel Lezcano, linux-kernel, Richard Weinberger

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.

Signed-off-by: Nicolai Stange <nicstange@gmail.com>
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 60d7d3d..835e5c5 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -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
-- 
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/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] clocksource: stm32: introduce dependency on HAS_IOMEM
  2015-06-21 20:32 [PATCH] clocksource: stm32: introduce dependency on HAS_IOMEM Nicolai Stange
@ 2015-06-22 13:55 ` Nicolai Stange
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolai Stange @ 2015-06-22 13:55 UTC (permalink / raw)
  To: Nicolai Stange
  Cc: Thomas Gleixner, Daniel Lezcano, linux-kernel, Richard Weinberger

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-22 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-21 20:32 [PATCH] clocksource: stm32: introduce dependency on HAS_IOMEM Nicolai Stange
2015-06-22 13:55 ` Nicolai Stange

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.