aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Young <[email protected]>2016-12-12 16:46:14 -0800
committerLinus Torvalds <[email protected]>2016-12-12 18:55:09 -0800
commit6b2a65c7ff612035deb1012388738b54e08ab2a6 (patch)
treed9311c1e5212cac33f2526f4a013fe2ecd1eebcb
parent5fc41a70d804f93b88924bed1d2f494f3b735571 (diff)
lib/Kconfig.debug: make CONFIG_STRICT_DEVMEM depend on CONFIG_DEVMEM
With CONFIG_DEVMEM not set, CONFIG_STRICT_DEVMEM will be useless even if it is set =y, thus let's update the dependency in Kconfig. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Dave Young <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Dan Williams <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Nikolay Aleksandrov <[email protected]> Cc: Dmitry Vyukov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--lib/Kconfig.debug2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 65a619e0ad5d..e40a0715f422 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -2005,7 +2005,7 @@ config ARCH_HAS_DEVMEM_IS_ALLOWED
config STRICT_DEVMEM
bool "Filter access to /dev/mem"
- depends on MMU
+ depends on MMU && DEVMEM
depends on ARCH_HAS_DEVMEM_IS_ALLOWED
default y if TILE || PPC
---help---