mm: Move early_node_map[] reverse scan helpers under HAVE_MEMBLOCK
authorYinghai Lu <yinghai@kernel.org>
Sat, 26 Feb 2011 12:05:43 +0000 (13:05 +0100)
committerTejun Heo <tj@kernel.org>
Sat, 26 Feb 2011 12:05:43 +0000 (13:05 +0100)
commitcc28989437de5617875a2943697fe6ba51a0da8f
treee1b712bb20af9690eda044f70284f7dcb32a3975
parent1f565a896ee139a70e1a16f74a4ec29707691b0b
mm: Move early_node_map[] reverse scan helpers under HAVE_MEMBLOCK

Heiko found recent memblock change triggers these warnings on s390:

  mm/page_alloc.c:3623:22: warning: 'last_active_region_index_in_nid' defined but not used
  mm/page_alloc.c:3638:22: warning: 'previous_active_region_index_in_nid' defined but not used

Need to move those two function under HAVE_MEMBLOCK with its only
user, find_memory_core_early().

-tj: Minor updates to description.

Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/page_alloc.c