Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4520bcb2 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Paul E. McKenney
Browse files

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: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 40cd725cfc7f ("bug: Provide toggle for BUG on data corruption")
Acked-by: default avatarRik van Riel <riel@redhat.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 91a6cee6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1214,7 +1214,7 @@ config DEBUG_BUGVERBOSE


config DEBUG_LIST
config DEBUG_LIST
	bool "Debug linked list manipulation"
	bool "Debug linked list manipulation"
	depends on DEBUG_KERNEL
	depends on DEBUG_KERNEL || BUG_ON_DATA_CORRUPTION
	help
	help
	  Enable this to turn on extended checks in the linked-list
	  Enable this to turn on extended checks in the linked-list
	  walking routines.
	  walking routines.