[merged mm-stable] mm-sparse-remove-redundant-judgments-from-macro-for_each_present_section_nr.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: mm/sparse: remove redundant judgments from macro for_each_present_section_nr
has been removed from the -mm tree.  Its filename was
     mm-sparse-remove-redundant-judgments-from-macro-for_each_present_section_nr.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: liuq <liuq131@xxxxxxxxxxxxxxx>
Subject: mm/sparse: remove redundant judgments from macro for_each_present_section_nr
Date: Fri, 7 Jul 2023 14:05:01 +0800

next_present_section_nr() has already ensured that
'section_nr<=__highest_present_section_nr', so this check is removed.

Link: https://lkml.kernel.org/r/20230707060501.29184-1-liuq131@xxxxxxxxxxxxxxx
Signed-off-by: liuq <liuq131@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/sparse.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/mm/sparse.c~mm-sparse-remove-redundant-judgments-from-macro-for_each_present_section_nr
+++ a/mm/sparse.c
@@ -172,8 +172,7 @@ static void __section_mark_present(struc
 
 #define for_each_present_section_nr(start, section_nr)		\
 	for (section_nr = next_present_section_nr(start-1);	\
-	     ((section_nr != -1) &&				\
-	      (section_nr <= __highest_present_section_nr));	\
+	     section_nr != -1;								\
 	     section_nr = next_present_section_nr(section_nr))
 
 static inline unsigned long first_present_section_nr(void)
_

Patches currently in -mm which might be from liuq131@xxxxxxxxxxxxxxx are





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux