The patch titled Subject: mm/memory_hotplug.c: remove unused local zone_type from __remove_zone() has been added to the -mm tree. Its filename is mm-remove-unused-zone_type-variable-from-__remove_zone.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-unused-zone_type-variable-from-__remove_zone.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-unused-zone_type-variable-from-__remove_zone.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: John Hubbard <jhubbard@xxxxxxxxxx> Subject: mm/memory_hotplug.c: remove unused local zone_type from __remove_zone() __remove_zone() sets up up zone_type, but never uses it for anything. This does not cause a warning, due to the (necessary) use of -Wno-unused-but-set-variable. However, it's noise, so just delete it. Link: http://lkml.kernel.org/r/20170624043421.24465-2-jhubbard@xxxxxxxxxx Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory_hotplug.c | 3 --- 1 file changed, 3 deletions(-) diff -puN mm/memory_hotplug.c~mm-remove-unused-zone_type-variable-from-__remove_zone mm/memory_hotplug.c --- a/mm/memory_hotplug.c~mm-remove-unused-zone_type-variable-from-__remove_zone +++ a/mm/memory_hotplug.c @@ -580,11 +580,8 @@ static void __remove_zone(struct zone *z { struct pglist_data *pgdat = zone->zone_pgdat; int nr_pages = PAGES_PER_SECTION; - int zone_type; unsigned long flags; - zone_type = zone - pgdat->node_zones; - pgdat_resize_lock(zone->zone_pgdat, &flags); shrink_zone_span(zone, start_pfn, start_pfn + nr_pages); shrink_pgdat_span(pgdat, start_pfn, start_pfn + nr_pages); _ Patches currently in -mm which might be from jhubbard@xxxxxxxxxx are mm-remove-unused-zone_type-variable-from-__remove_zone.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html