The patch titled Subject: mmzone: clean code by removing unused macro parameter has been added to the -mm tree. Its filename is mmzone-clean-code-by-removing-unused-macro-parameter.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mmzone-clean-code-by-removing-unused-macro-parameter.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mmzone-clean-code-by-removing-unused-macro-parameter.patch 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 and is updated there every 3-4 working days ------------------------------------------------------ From: Mateusz Nosek <mateusznosek0@xxxxxxxxx> Subject: mmzone: clean code by removing unused macro parameter Previously 'for_next_zone_zonelist_nodemask' macro parameter 'zlist' was unused so this patch removes it. Link: https://lkml.kernel.org/r/20200917211906.30059-1-mateusznosek0@xxxxxxxxx Signed-off-by: Mateusz Nosek <mateusznosek0@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mmzone.h | 2 +- mm/page_alloc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/include/linux/mmzone.h~mmzone-clean-code-by-removing-unused-macro-parameter +++ a/include/linux/mmzone.h @@ -1116,7 +1116,7 @@ static inline struct zoneref *first_zone z = next_zones_zonelist(++z, highidx, nodemask), \ zone = zonelist_zone(z)) -#define for_next_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ +#define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ for (zone = z->zone; \ zone; \ z = next_zones_zonelist(++z, highidx, nodemask), \ --- a/mm/page_alloc.c~mmzone-clean-code-by-removing-unused-macro-parameter +++ a/mm/page_alloc.c @@ -3727,8 +3727,8 @@ retry: */ no_fallback = alloc_flags & ALLOC_NOFRAGMENT; z = ac->preferred_zoneref; - for_next_zone_zonelist_nodemask(zone, z, ac->zonelist, - ac->highest_zoneidx, ac->nodemask) { + for_next_zone_zonelist_nodemask(zone, z, ac->highest_zoneidx, + ac->nodemask) { struct page *page; unsigned long mark; _ Patches currently in -mm which might be from mateusznosek0@xxxxxxxxx are mm-slabc-clean-code-by-removing-redundant-if-condition.patch mm-page_allocc-clean-code-by-removing-unnecessary-initialization.patch mm-page_allocc-micro-optimization-remove-unnecessary-branch.patch mm-page_allocc-fix-early-params-garbage-value-accesses.patch mm-page_allocc-clean-code-by-merging-two-functions.patch mmzone-clean-code-by-removing-unused-macro-parameter.patch mm-compactionc-micro-optimization-remove-unnecessary-branch.patch