Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

panic: remove CONFIG_PANIC_ON_OOPS_VALUE

There's really no need for this since it's 0 or 1 when
CONFIG_PANIC_ON_OOPS is disabled/enabled, so just use IS_ENABLED()
instead. The extra symbol goes back to the original code adding it in
commit 2a01bb3885c9 ("panic: Make panic_on_oops configurable").

Link: https://lkml.kernel.org/r/20250924094303.18521-2-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Johannes Berg and committed by
Andrew Morton
1daf3759 8f45f089

+1 -7
+1 -1
kernel/panic.c
··· 53 53 #define sysctl_oops_all_cpu_backtrace 0 54 54 #endif /* CONFIG_SMP */ 55 55 56 - int panic_on_oops = CONFIG_PANIC_ON_OOPS_VALUE; 56 + int panic_on_oops = IS_ENABLED(CONFIG_PANIC_ON_OOPS); 57 57 static unsigned long tainted_mask = 58 58 IS_ENABLED(CONFIG_RANDSTRUCT) ? (1 << TAINT_RANDSTRUCT) : 0; 59 59 static int pause_on_oops;
-6
lib/Kconfig.debug
··· 1067 1067 1068 1068 Say N if unsure. 1069 1069 1070 - config PANIC_ON_OOPS_VALUE 1071 - int 1072 - range 0 1 1073 - default 0 if !PANIC_ON_OOPS 1074 - default 1 if PANIC_ON_OOPS 1075 - 1076 1070 config PANIC_TIMEOUT 1077 1071 int "panic timeout" 1078 1072 default 0