Skip to contentSkip to conversation

panic-remove-the-unneeded-panic_print_get.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Oct 7

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: panic: remove the unneeded panic_print_get()
has been removed from the -mm tree. Its filename was
panic-remove-the-unneeded-panic_print_get.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Feng Tang <[email protected]>
Subject: panic: remove the unneeded panic_print_get()
Date: Wed, 2 Sep 2026 19:48:51 +0800

panic_print_get() was introduced in commit 2683df6539cb ("panic: add note that 'panic_print' parameter is deprecated") to print out warning message of the deprecation of 'panic_print' on read access.

Since commit 90f3c123247e ("panic: only warn about deprecated panic_print on write access"), panic_print_get() wrapper is not needed anymore for read access, so remove it and use param_get_ulong() instead.

---

 kernel/panic.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
kernel/panic.c renamed from kernel/panic.c~panic-remove-the-unneeded-panic_print_get +1 -6
@@ -1216,14 +1216,9 @@ static int panic_print_set(const char *v
 	return  param_set_ulong(val, kp);
 }
 
-static int panic_print_get(char *val, const struct kernel_param *kp)
-{
-	return  param_get_ulong(val, kp);
-}
-
 static const struct kernel_param_ops panic_print_ops = {
 	.set	= panic_print_set,
-	.get	= panic_print_get,
+	.get	= param_get_ulong,
 };
 __core_param_cb(panic_print, &panic_print_ops, &panic_print, 0644);
 

_

Patches currently in -mm which might be from [email protected] are