On Tue, 23 Oct 2012, Michal Hocko wrote: > From e8d79e446b00e57c195c59570df0f2ec435ca39d Mon Sep 17 00:00:00 2001 > From: Michal Hocko <mhocko@xxxxxxx> > Date: Tue, 23 Oct 2012 11:07:11 +0200 > Subject: [PATCH] mm: make zone_pcp_reset independ on MEMORY_HOTREMOVE > > 340175b7 (mm/hotplug: free zone->pageset when a zone becomes empty) > introduced zone_pcp_reset and hided it inside CONFIG_MEMORY_HOTREMOVE. > Since "memory-hotplug: allocate zone's pcp before onlining pages" the > function is also called from online_pages which is defined outside > CONFIG_MEMORY_HOTREMOVE which causes a linkage error. > > The function, although not used outside of MEMORY_{HOTPLUT,HOTREMOVE}, > seems like universal enough so let's keep it at its current location > and only remove the HOTREMOVE guard. > > Signed-off-by: Michal Hocko <mhocko@xxxxxxx> > Reviewed-by: Wen Congyang <wency@xxxxxxxxxxxxxx> > Cc: David Rientjes <rientjes@xxxxxxxxxx> > Cc: Jiang Liu <liuj97@xxxxxxxxx> > Cc: Len Brown <len.brown@xxxxxxxxx> > Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> > Cc: Paul Mackerras <paulus@xxxxxxxxx> > Cc: Christoph Lameter <cl@xxxxxxxxx> > Cc: Minchan Kim <minchan.kim@xxxxxxxxx> > Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> > Cc: Yasuaki Ishimatsu <isimatu.yasuaki@xxxxxxxxxxxxxx> > Cc: Dave Hansen <dave@xxxxxxxxxxxxxxxxxx> > Cc: Mel Gorman <mel@xxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> This fixes the build error on linux-next of this morning, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-next" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html