[PATCH 0/3] mm: Coccinelle-driven cleanups across memory management code

From: Sahil Chandna

Date: Tue Nov 18 2025 - 01:09:44 EST


This patch series contains three minor cleanups identified by
Coccinelle scripts under scripts/coccinelle/misc/:

* Replace manual ternary expression with the min() macro in pagewalk.c
* Use the %pe printk format specifier for PTR_ERR() reporting
in vmscan.c and zswap.c
Found using:
make coccicheck MODE=report M=mm/

Sahil Chandna (3):
mm/pagewalk: use min() macro instead of manual ternary
mm/vmscan: use %pe to print PTR_ERR() values
mm/zswap: use %pe to print PTR_ERR() values

mm/pagewalk.c | 2 +-
mm/vmscan.c | 4 ++--
mm/zswap.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)

--
2.50.1