compaction: fix build error in CMA && !COMPACTION
authorMinchan Kim <minchan@kernel.org>
Thu, 20 Dec 2012 23:05:06 +0000 (15:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 21 Dec 2012 01:40:18 +0000 (17:40 -0800)
commit010fc29a45a2e8dbc08bf45ef80b8622619aaae0
treeb5ef6be5185c4a57a3231b07fdb15b902383968e
parent787314c35fbb97e02823a1b8eb8cfa58f366cd49
compaction: fix build error in CMA && !COMPACTION

isolate_freepages_block() and isolate_migratepages_range() are used for
CMA as well as compaction so it breaks build for CONFIG_CMA &&
!CONFIG_COMPACTION.

This patch fixes it.

[akpm@linux-foundation.org: add "do { } while (0)", per Mel]
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c