From: Mateusz Nosek Date: Tue, 13 Oct 2020 23:55:57 +0000 (-0700) Subject: mmzone: clean code by removing unused macro parameter X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=30d8ec73e8772b32a7eae626d14004bd37d8f13c;p=linux.git mmzone: clean code by removing unused macro parameter Previously 'for_next_zone_zonelist_nodemask' macro parameter 'zlist' was unused so this patch removes it. Signed-off-by: Mateusz Nosek Signed-off-by: Andrew Morton Link: https://lkml.kernel.org/r/20200917211906.30059-1-mateusznosek0@gmail.com Signed-off-by: Linus Torvalds --- diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 927bd7e98a881..c27fb1faffe5d 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -1116,7 +1116,7 @@ static inline struct zoneref *first_zones_zonelist(struct zonelist *zonelist, 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), \ diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a105c657be379..6263a97e39c61 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3741,8 +3741,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;