clocksource/drivers/armv7m_systick: Add the COMPILE_TEST option
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 2 Jun 2016 16:41:52 +0000 (18:41 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 28 Jun 2016 08:22:05 +0000 (10:22 +0200)
In order to increase the compilation test coverage, add the COMPILE_TEST
so the driver can be compiled even if it does not belong to the platform
or the architecture.

The io.h header inclusion is also added as it the driver does not compile
on UM platform.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/Kconfig
drivers/clocksource/armv7m_systick.c

index 0275b166a59812d1d36e8d9a31867d4fd8aa1f60..01ecd8833ed147094156f73346a7bc60804da1bc 100644 (file)
@@ -250,7 +250,7 @@ config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
         Use ARM global timer clock source as sched_clock
 
 config ARMV7M_SYSTICK
-       bool
+       bool "Support for the ARMv7M system time" if COMPILE_TEST
        select CLKSRC_OF if OF
        select CLKSRC_MMIO
        help
index e93af1f6a36cb02f0377d9ab602bc11430f8b6da..a315491b704751887a9427c298a4a697dddbd6a4 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/kernel.h>
 #include <linux/clocksource.h>
 #include <linux/clockchips.h>
+#include <linux/io.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/clk.h>