+ kernel-panicc-remove-config_panic_on_oops_value-indirection.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxx
Signed-off-by: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Cc: Kyle McMartin <kmcmarti@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 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@xxxxxxxxxxxxxxxxxx are

linux-kthreadh-remove-unused-macros.patch
include-drop-pointless-__compiler_offsetof-indirection.patch
kernel-panicc-remove-config_panic_on_oops_value-indirection.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux