Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource/drivers/armv7m_systick: Add the COMPILE_TEST option

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>

+2 -1
+1 -1
drivers/clocksource/Kconfig
··· 250 250 Use ARM global timer clock source as sched_clock 251 251 252 252 config ARMV7M_SYSTICK 253 - bool 253 + bool "Support for the ARMv7M system time" if COMPILE_TEST 254 254 select CLKSRC_OF if OF 255 255 select CLKSRC_MMIO 256 256 help
+1
drivers/clocksource/armv7m_systick.c
··· 7 7 #include <linux/kernel.h> 8 8 #include <linux/clocksource.h> 9 9 #include <linux/clockchips.h> 10 + #include <linux/io.h> 10 11 #include <linux/of.h> 11 12 #include <linux/of_address.h> 12 13 #include <linux/clk.h>