mm-constify-process_shares_mm-for-improved-const-correctness.patch removed from -mm tree
The quilt patch titled
Subject: mm: constify process_shares_mm() for improved const-correctness
has been removed from the -mm tree. Its filename was
mm-constify-process_shares_mm-for-improved-const-correctness.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: Max Kellermann <[email protected]>
Subject: mm: constify process_shares_mm() for improved const-correctness
Date: Mon, 1 Sep 2025 22:50:14 +0200
This function only reads from the pointer arguments.
Local (loop) variables are also annotated with const to clarify that these will not be written to.
---
include/linux/mm.h | 2 +- mm/oom_kill.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-constify-process_shares_mm-for-improved-const-correctness +1 -1
@@ -3872,7 +3872,7 @@ static inline int in_gate_area(struct mm }#endif /* __HAVE_ARCH_GATE_AREA */ -extern bool process_shares_mm (struct task_struct *p,struct mm_struct *mm); +bool process_shares_mm (const struct task_struct *p,const struct mm_struct *mm);void drop_slab (void );
mm/oom_kill.c renamed from mm/oom_kill.c~mm-constify-process_shares_mm-for-improved-const-correctness +3 -3
@@ -490,12 +490,12 @@ static bool oom_killer_disabled __read_m* task's threads: if one of those is using this mm then this task was also * using it. */ -bool process_shares_mm (struct task_struct *p,struct mm_struct *mm) +bool process_shares_mm (const struct task_struct *p,const struct mm_struct *mm) { -struct task_struct *t; +const struct task_struct *t;for_each_thread (p, t) { -struct mm_struct *t_mm =READ_ONCE (t->mm); +const struct mm_struct *t_mm =READ_ONCE (t->mm);if (t_mm)return t_mm == mm; }
_
Patches currently in -mm which might be from [email protected] are