]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: fix DEBUG_SET_MODULE_RONX build dependencies
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Jun 2015 09:34:38 +0000 (10:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 29 Jun 2015 13:32:58 +0000 (14:32 +0100)
commite6ae32c343981a50aa07c34767f2a967cc920edc
tree210299defddc57e05721d643aae1545c04d66e52
parente48866647b486f31ff7c3927b48de8bbb1c6a4c0
ARM: fix DEBUG_SET_MODULE_RONX build dependencies

randconfig testing reveals that DEBUG_SET_MODULE_RONX needs to depend on
MMU otherwise these build errors are observed:

kernel/built-in.o: In function `set_section_ro_nx':
kernel/module.c:1738: undefined reference to `set_memory_nx'
kernel/built-in.o: In function `set_page_attributes':
kernel/module.c:1709: undefined reference to `set_memory_ro'

This is because the pageattr functions are not built for !MMU configs as
they don't have page tables.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig.debug