* + kernel-panicc-remove-config_panic_on_oops_value-indirection.patch added to -mm tree
@ 2022-03-16 20:12 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-03-16 20:12 UTC (permalink / raw)
To: mm-commits, mingo, masahiroy, kmcmarti, akpm, linux, akpm
The patch titled
Subject: kernel/panic.c: remove CONFIG_PANIC_ON_OOPS_VALUE indirection
has been added to the -mm tree. Its filename is
kernel-panicc-remove-config_panic_on_oops_value-indirection.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/kernel-panicc-remove-config_panic_on_oops_value-indirection.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/kernel-panicc-remove-config_panic_on_oops_value-indirection.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Subject: kernel/panic.c: remove CONFIG_PANIC_ON_OOPS_VALUE indirection
We have the helper IS_ENABLED(). Use that instead of having an
unnecessary hidden config option.
Link: https://lkml.kernel.org/r/20220316102622.562572-1-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Kyle McMartin <kmcmarti@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/panic.c | 2 +-
lib/Kconfig.debug | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
--- a/kernel/panic.c~kernel-panicc-remove-config_panic_on_oops_value-indirection
+++ a/kernel/panic.c
@@ -46,7 +46,7 @@
unsigned int __read_mostly sysctl_oops_all_cpu_backtrace;
#endif /* CONFIG_SMP */
-int panic_on_oops = CONFIG_PANIC_ON_OOPS_VALUE;
+int panic_on_oops = IS_ENABLED(CONFIG_PANIC_ON_OOPS);
static unsigned long tainted_mask =
IS_ENABLED(CONFIG_GCC_PLUGIN_RANDSTRUCT) ? (1 << TAINT_RANDSTRUCT) : 0;
static int pause_on_oops;
--- a/lib/Kconfig.debug~kernel-panicc-remove-config_panic_on_oops_value-indirection
+++ a/lib/Kconfig.debug
@@ -1005,12 +1005,6 @@ config PANIC_ON_OOPS
Say N if unsure.
-config PANIC_ON_OOPS_VALUE
- int
- range 0 1
- default 0 if !PANIC_ON_OOPS
- default 1 if PANIC_ON_OOPS
-
config PANIC_TIMEOUT
int "panic timeout"
default 0
_
Patches currently in -mm which might be from linux@rasmusvillemoes.dk are
linux-kthreadh-remove-unused-macros.patch
include-drop-pointless-__compiler_offsetof-indirection.patch
kernel-panicc-remove-config_panic_on_oops_value-indirection.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-16 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 20:12 + kernel-panicc-remove-config_panic_on_oops_value-indirection.patch added to -mm tree Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).