All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mm: Coccinelle-driven cleanups across memory management code
@ 2025-11-23  3:04 Sahil Chandna
  2025-11-23  3:04 ` [PATCH v2 1/3] mm: pagewalk: simplify hugepage boundary calculation using min() Sahil Chandna
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sahil Chandna @ 2025-11-23  3:04 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
    and change return expression for clarity.
  * Use the %pe printk format specifier for PTR_ERR() reporting
    in vmscan.c and zswap.c
Found using:
  make coccicheck MODE=report M=mm/

changes in v2:
- Patch 1/3: update return value as per review comments.
- patch 2/3 and 3/3: Add Acked-by and Reviewed-by tags.

link to v1: https://lore.kernel.org/all/cover.1763227530.git.chandna.sahil@gmail.com/

Sahil Chandna (3):
  mm: pagewalk: simplify hugepage boundary calculation using min()
  mm/vmscan: use %pe to print error pointers
  mm/zswap: use %pe to print error pointers

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

-- 
2.50.1



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

end of thread, other threads:[~2025-11-24 10:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-23  3:04 [PATCH v2 0/3] mm: Coccinelle-driven cleanups across memory management code Sahil Chandna
2025-11-23  3:04 ` [PATCH v2 1/3] mm: pagewalk: simplify hugepage boundary calculation using min() Sahil Chandna
2025-11-24 10:53   ` David Hildenbrand (Red Hat)
2025-11-23  3:04 ` [PATCH v2 2/3] mm/vmscan: use %pe to print error pointers Sahil Chandna
2025-11-24 10:54   ` David Hildenbrand (Red Hat)
2025-11-23  3:04 ` [PATCH v2 3/3] mm/zswap: " Sahil Chandna
2025-11-24 10:54   ` David Hildenbrand (Red Hat)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.