mmzone: clean code by removing unused macro parameter
Subsystems (4)
PATCH 1/1 mmzone: clean code by removing unused macro parameter
From: Mateusz Nosek <[email protected]>
Previously 'for_next_zone_zonelist_nodemask' macro parameter 'zlist' was unused so this patch removes it.
Signed-off-by Mateusz Nosek <[email protected]>
--- include/linux/mmzone.h | 2 +- mm/page_alloc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
include/linux/mmzone.h +1 -1
@@ -1120,7 +1120,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), \
mm/page_alloc.c +2 -2
@@ -3727,8 +3727,8 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags,*/ 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;
Signature · 1 line
2.20.1