diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 927bd7e98a88195ebe8ed1650a66f41bca242817..c27fb1faffe5de0c9679a15bca00e5b2c1778695 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 a105c657be379a3d0f435a2915eb6487d237e04b..6263a97e39c6197fd2cfa8088407b42ac2f53ccd 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3741,8 +3741,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;