Skip to contentSkip to conversation

mm-mseal-use-min-max-in-mseal_apply.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 2

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/mseal: use min/max in mseal_apply
has been removed from the -mm tree. Its filename was
mm-mseal-use-min-max-in-mseal_apply.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: Thorsten Blum <[email protected]>
Subject: mm/mseal: use min/max in mseal_apply
Date: Sun, 3 May 2026 13:59:16 +0200

Use the type-checked min()/max() macros instead of MIN()/MAX(), which are supposed to be used "for obvious constants only".

---

 mm/mseal.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
mm/mseal.c renamed from mm/mseal.c~mm-mseal-use-min-max-in-mseal_apply +3 -2
@@ -8,6 +8,7 @@
  */
 
 #include <linux/mempolicy.h>
+#include <linux/minmax.h>
 #include <linux/mman.h>
 #include <linux/mm.h>
 #include <linux/mm_inline.h>
@@ -65,8 +66,8 @@ static int mseal_apply(struct mm_struct
 		prev = vma;
 
 	for_each_vma_range(vmi, vma, end) {
-		const unsigned long curr_start = MAX(vma->vm_start, start);
-		const unsigned long curr_end = MIN(vma->vm_end, end);
+		const unsigned long curr_start = max(vma->vm_start, start);
+		const unsigned long curr_end = min(vma->vm_end, end);
 
 		if (!vma_test(vma, VMA_SEALED_BIT)) {
 			vma_flags_t vma_flags = vma->flags;

_

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