From: Rasmus Villemoes <linux@rasmusvillemoes.dk>
To: Andrew Morton <akpm@linux-foundation.org>,
Masahiro Yamada <masahiroy@kernel.org>
Cc: Kyle McMartin <kmcmarti@redhat.com>,
Ingo Molnar <mingo@kernel.org>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
linux-kernel@vger.kernel.org
Subject: [PATCH] kernel/panic.c: remove CONFIG_PANIC_ON_OOPS_VALUE indirection
Date: Wed, 16 Mar 2022 11:26:22 +0100 [thread overview]
Message-ID: <20220316102622.562572-1-linux@rasmusvillemoes.dk> (raw)
We have the helper IS_ENABLED(). Use that instead of having an
unnecessary hidden config option.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
kernel/panic.c | 2 +-
lib/Kconfig.debug | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/kernel/panic.c b/kernel/panic.c
index 55b50e052ec3..304957f5b3c4 100644
--- a/kernel/panic.c
+++ b/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;
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 14b89aa37c5c..40211c343a14 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -995,12 +995,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
--
2.31.1
reply other threads:[~2022-03-16 10:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220316102622.562572-1-linux@rasmusvillemoes.dk \
--to=linux@rasmusvillemoes.dk \
--cc=akpm@linux-foundation.org \
--cc=kmcmarti@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=mingo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®