aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-08-26 11:42:00 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2016-10-31 16:01:59 -0400
commit4520bcb2ba452863d744337db275c326835fca3f (patch)
tree0319e837230c35ed6ac2e681c9b5260dc22b93fe
parent91a6cee6e30eda815d657d1c2fd4b869fe69d705 (diff)
bug: Avoid Kconfig warning for BUG_ON_DATA_CORRUPTION
The CONFIG_DEBUG_LIST option is normally meant for kernel developers rather than production machines and is guarded by CONFIG_DEBUG_KERNEL. In contrast, the newly added CONFIG_BUG_ON_DATA_CORRUPTION is meant for security hardening and may be used on systems that intentionally do not enable CONFIG_DEBUG_KERNEL. In this configuration, we get a warning from Kconfig about the mismatched dependencies: warning: (BUG_ON_DATA_CORRUPTION) selects DEBUG_LIST which has unmet direct dependencies (DEBUG_KERNEL) This annotates the DEBUG_LIST option to be selectable by BUG_ON_DATA_CORRUPTION when DEBUG_KERNEL is disabled. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 40cd725cfc7f ("bug: Provide toggle for BUG on data corruption") Acked-by: Rik van Riel <riel@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r--lib/Kconfig.debug2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index afa30fd52583..0c6366b77062 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1214,7 +1214,7 @@ config DEBUG_BUGVERBOSE
1214 1214
1215config DEBUG_LIST 1215config DEBUG_LIST
1216 bool "Debug linked list manipulation" 1216 bool "Debug linked list manipulation"
1217 depends on DEBUG_KERNEL 1217 depends on DEBUG_KERNEL || BUG_ON_DATA_CORRUPTION
1218 help 1218 help
1219 Enable this to turn on extended checks in the linked-list 1219 Enable this to turn on extended checks in the linked-list
1220 walking routines. 1220 walking routines.