]> 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>
Thu, 7 Feb 2013 01:26:41 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:35 +0000 (16:46 +1100)
commit36ed0a9094565ba1c863b0bacb4d4d844a7f2e0c
tree0c5b70eec5e115e8580fbdcc3d5ba01ddf3c46ed
parentf9b819bcc6a121a809f552aa2daf4a7dea6ed34b
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