Skip to contentSkip to conversation

mm-zswap-use-%pe-to-print-error-pointers.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 6

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/zswap: use %pe to print error pointers
has been removed from the -mm tree. Its filename was
mm-zswap-use-%pe-to-print-error-pointers.patch

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

------------------------------------------------------
From: Sahil Chandna <[email protected]>
Subject: mm/zswap: use %pe to print error pointers
Date: Thu, 5 Feb 2026 00:24:08 +0530

Use the %pe printk format specifier to report error pointers directly instead of printing PTR_ERR() as a long value. This improves clarity, produces more readable error messages.

This instance was flagged by the Coccinelle script (misc/ptr_err_to_pe.cocci) as an opportunity to adopt %pe.

Found by: make coccicheck MODE=report M=mm/
No functional change intended.

---

 mm/zswap.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/zswap.c renamed from mm/zswap.c~mm-zswap-use-%pe-to-print-error-pointers +2 -2
@@ -749,8 +749,8 @@ static int zswap_cpu_comp_prepare(unsign
 
 	acomp = crypto_alloc_acomp_node(pool->tfm_name, 0, 0, cpu_to_node(cpu));
 	if (IS_ERR(acomp)) {
-		pr_err("could not alloc crypto acomp %s : %ld\n",
-				pool->tfm_name, PTR_ERR(acomp));
+		pr_err("could not alloc crypto acomp %s : %pe\n",
+				pool->tfm_name, acomp);
 		ret = PTR_ERR(acomp);
 		goto fail;
 	}

_

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