bug: Avoid Kconfig warning for BUG_ON_DATA_CORRUPTION
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Aug 2016 15:42:00 +0000 (17:42 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 26 Aug 2016 18:42:33 +0000 (11:42 -0700)
commitb65a6f5d2cf5d8b46198fe49b698699713a0c4a1
treee08f4d13986284032118091cf24fefbad75bb4b0
parentf6ac28c367ce61011e346af57ee20f0f23f5d729
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>
lib/Kconfig.debug
This page took 0.024965 seconds and 5 git commands to generate.