Kconfig: arm: Update dependancy for CONFIG_FREE_PAGES_RDONLY

The kernel_map_pages function is compiled only when
CONFIG_PAGE_POISONING is enabled, however the stub
fuction is added when CONFIG_DEBUG_PAGEALLOC=n, which
causes a compilation error when CONFIG_DEBUG_PAGEALLOC
is disabled and CONFIG_FREE_PAGES_RDONLY is enabled.

Enable CONFIG_DEBUG_PAGEALLOC when CONFIG_FREE_PAGES_RDONLY
is enabled.

Change-Id: I89f3dc73d4031b560e0595529498d71e77e83720
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
This commit is contained in:
Neeti Desai 2014-07-23 15:51:48 -07:00
parent 286b0d283d
commit 055865db1c

View file

@ -88,7 +88,7 @@ config FORCE_PAGES
config FREE_PAGES_RDONLY
bool "Set pages as read only while on the buddy list"
select FORCE_PAGES
select PAGE_POISONING
select DEBUG_PAGEALLOC
help
Pages are always mapped in the kernel. This means that anyone
can write to the page if they have the address. Enable this option