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

clocksource: Kconfig: Let EM_TIMER_STI depend on HAS_IOMEM

In 'em_sti.c', it will call devm_ioremap_resource() which need
HAS_IOMEM. So need let EM_TIMER_STI depend on HAS_IOMEM, too.

The related error (with allmodconfig under score):

LD init/built-in.o
em_sti.c:(.text.em_sti_probe+0x84): undefined reference to `devm_ioremap_resource'
make: *** [vmlinux] Error 1

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Chen Gang and committed by
Daniel Lezcano
40c96312 22c4e026

+1 -1
+1 -1
drivers/clocksource/Kconfig
··· 194 194 195 195 config EM_TIMER_STI 196 196 bool "Renesas STI timer driver" if COMPILE_TEST 197 - depends on GENERIC_CLOCKEVENTS 197 + depends on GENERIC_CLOCKEVENTS && HAS_IOMEM 198 198 default SYS_SUPPORTS_EM_STI 199 199 help 200 200 This enables build of a clocksource and clockevent driver for