The patch titled Subject: mm/sparse: remove redundant judgments from macro for_each_present_section_nr has been added to the -mm mm-unstable branch. Its filename is mm-sparse-remove-redundant-judgments-from-macro-for_each_present_section_nr.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-sparse-remove-redundant-judgments-from-macro-for_each_present_section_nr.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ 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 mm-page_alloc-fix-min_free_kbytes-calculation-regarding-zone_movable.patch mm-sparse-remove-redundant-judgments-from-macro-for_each_present_section_nr.patch