Re: [patch] mm, hotplug: avoid compiling memory hotremove functions when disabled

2013-04-10 Thread Toshi Kani
On Tue, 2013-04-09 at 23:07 -0700, David Rientjes wrote: > __remove_pages() is only necessary for CONFIG_MEMORY_HOTREMOVE. PowerPC > pseries will return -EOPNOTSUPP if unsupported. > > Adding an #ifdef causes several other functions it depends on to also > become unnecessary, which saves in .text

[patch] mm, hotplug: avoid compiling memory hotremove functions when disabled

2013-04-09 Thread David Rientjes
__remove_pages() is only necessary for CONFIG_MEMORY_HOTREMOVE. PowerPC pseries will return -EOPNOTSUPP if unsupported. Adding an #ifdef causes several other functions it depends on to also become unnecessary, which saves in .text when disabled (it's disabled in most defconfigs besides powerpc, i