Commit 9c6026994c2a18473c9ef9ed77e8cf8e344f4357
Committed by
Greg Kroah-Hartman
1 parent
e4a60d1390
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Aristeu Rozanski <arozansk@redhat.com> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 11 additions and 8 deletions Side-by-side Diff
drivers/base/Kconfig
... | ... | @@ -171,20 +171,23 @@ |
171 | 171 | Drivers should "select" this option if they desire to use the |
172 | 172 | device coredump mechanism. |
173 | 173 | |
174 | -config DISABLE_DEV_COREDUMP | |
175 | - bool "Disable device coredump" if EXPERT | |
174 | +config ENABLE_DEV_COREDUMP | |
175 | + bool "Enable device coredump" if EXPERT | |
176 | + default y | |
176 | 177 | help |
177 | - Disable the device coredump mechanism despite drivers wanting to | |
178 | - use it; this allows for more sensitive systems or systems that | |
179 | - don't want to ever access the information to not have the code, | |
180 | - nor keep any data. | |
178 | + This option controls if the device coredump mechanism is available or | |
179 | + not; if disabled, the mechanism will be omitted even if drivers that | |
180 | + can use it are enabled. | |
181 | + Say 'N' for more sensitive systems or systems that don't want | |
182 | + to ever access the information to not have the code, nor keep any | |
183 | + data. | |
181 | 184 | |
182 | - If unsure, say N. | |
185 | + If unsure, say Y. | |
183 | 186 | |
184 | 187 | config DEV_COREDUMP |
185 | 188 | bool |
186 | 189 | default y if WANT_DEV_COREDUMP |
187 | - depends on !DISABLE_DEV_COREDUMP | |
190 | + depends on ENABLE_DEV_COREDUMP | |
188 | 191 | |
189 | 192 | config DEBUG_DRIVER |
190 | 193 | bool "Driver Core verbose debug messages" |