提交 9c602699 编写于 作者: A Aristeu Rozanski 提交者: Greg Kroah-Hartman

tiny: reverse logic for DISABLE_DEV_COREDUMP

It's desirable for allnconfig and tinyconfig targets to result in the
least amount of code possible. DISABLE_DEV_COREDUMP exists as a way to
switch off DEV_COREDUMP regardless if any drivers select
WANT_DEV_COREDUMP.

This patch renames the option to ENABLE_DEV_COREDUMP and setting it to
'n' (as in allnconfig or tinyconfig) will effectively disable device
coredump.

Cc: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
Signed-off-by: NAristeu Rozanski <arozansk@redhat.com>
Reviewed-by: NJohannes Berg <johannes@sipsolutions.net>
Acked-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e4a60d13
...@@ -171,20 +171,23 @@ config WANT_DEV_COREDUMP ...@@ -171,20 +171,23 @@ config WANT_DEV_COREDUMP
Drivers should "select" this option if they desire to use the Drivers should "select" this option if they desire to use the
device coredump mechanism. device coredump mechanism.
config DISABLE_DEV_COREDUMP config ENABLE_DEV_COREDUMP
bool "Disable device coredump" if EXPERT bool "Enable device coredump" if EXPERT
default y
help help
Disable the device coredump mechanism despite drivers wanting to This option controls if the device coredump mechanism is available or
use it; this allows for more sensitive systems or systems that not; if disabled, the mechanism will be omitted even if drivers that
don't want to ever access the information to not have the code, can use it are enabled.
nor keep any data. Say 'N' for more sensitive systems or systems that don't want
to ever access the information to not have the code, nor keep any
data.
If unsure, say N. If unsure, say Y.
config DEV_COREDUMP config DEV_COREDUMP
bool bool
default y if WANT_DEV_COREDUMP default y if WANT_DEV_COREDUMP
depends on !DISABLE_DEV_COREDUMP depends on ENABLE_DEV_COREDUMP
config DEBUG_DRIVER config DEBUG_DRIVER
bool "Driver Core verbose debug messages" bool "Driver Core verbose debug messages"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册