]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/memblock.c: use CONFIG_HAVE_MEMBLOCK_NODE_MAP to protect movablecore_map in memblo...
authorTang Chen <tangchen@cn.fujitsu.com>
Wed, 20 Feb 2013 02:14:30 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:40 +0000 (16:52 +1100)
commit5f2a0e8f609d61ad1aff621ac57d346ec2d06702
tree7cdfa3b6614209547a2b2704c2e98b5c9bed24e6
parent7f865e21ecae5e33a66dca600919edcca41d8592
mm/memblock.c: use CONFIG_HAVE_MEMBLOCK_NODE_MAP to protect movablecore_map in memblock_overlaps_region().

The definition of struct movablecore_map is protected by
CONFIG_HAVE_MEMBLOCK_NODE_MAP but its use in memblock_overlaps_region() is
not.  So add CONFIG_HAVE_MEMBLOCK_NODE_MAP to protect the use of
movablecore_map in memblock_overlaps_region().

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memblock.h
mm/memblock.c