memblock: don't mark memblock_phys_mem_size() as __init
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 5 Feb 2016 23:36:19 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Feb 2016 02:10:40 +0000 (18:10 -0800)
commit1f1ffb8a151e8c59899c78019f76cb8f64be13f5
treece522b3973d327df37001428b6fb50117c729754
parentd7ce36924344ace0dbdc855b1206cacc46b36d45
memblock: don't mark memblock_phys_mem_size() as __init

At the moment memblock_phys_mem_size() is marked as __init, and so is
discarded after boot.  This is different from most of the memblock
functions which are marked __init_memblock, and are only discarded after
boot if memory hotplug is not configured.

To allow for upcoming code which will need memblock_phys_mem_size() in
the hotplug path, change it from __init to __init_memblock.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memblock.c