linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mm: Coccinelle-driven cleanups across memory management code
@ 2025-11-18  6:08 Sahil Chandna
  2025-11-18  6:08 ` [PATCH 1/3] mm/pagewalk: use min() macro instead of manual ternary Sahil Chandna
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Sahil Chandna @ 2025-11-18  6:08 UTC (permalink / raw)
  To: akpm, david, lorenzo.stoakes, mhocko, vbabka, rppt, surenb,
	hannes, shakeel.butt, zhengqi.arch, Liam.Howlett, weixugc,
	axelrasmussen, yuanchu, yosry.ahmed, nphamcs, chengming.zhou,
	linux-mm, linux-kernel
  Cc: Sahil Chandna

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



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-11-19 12:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-18  6:08 [PATCH 0/3] mm: Coccinelle-driven cleanups across memory management code Sahil Chandna
2025-11-18  6:08 ` [PATCH 1/3] mm/pagewalk: use min() macro instead of manual ternary Sahil Chandna
2025-11-18 10:19   ` Markus Elfring
2025-11-18 10:45   ` David Laight
2025-11-18 15:18     ` Matthew Wilcox
2025-11-18 16:56       ` David Laight
2025-11-18  6:08 ` [PATCH 2/3] mm/vmscan: use %pe to print PTR_ERR() values Sahil Chandna
2025-11-18 13:15   ` Markus Elfring
2025-11-19  1:52   ` SeongJae Park
2025-11-18  6:08 ` [PATCH 3/3] mm/zswap: " Sahil Chandna
2025-11-18 13:20   ` Markus Elfring
2025-11-18 15:11     ` Matthew Wilcox
2025-11-18 19:28       ` Markus Elfring
2025-11-18 15:46   ` Yosry Ahmed
2025-11-19  1:50   ` SeongJae Park
2025-11-19 12:50   ` Nhat Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox