]> git.baikalelectronics.ru Git - kernel.git/commit
mm: compaction: Fix compiler warning
authorThierry Reding <thierry.reding@avionic-design.de>
Wed, 12 Dec 2012 21:51:17 +0000 (13:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Dec 2012 01:38:32 +0000 (17:38 -0800)
commite890bd0accb08851f78b7863a6417f2830889a2a
tree0b26144dd758cc6cdceee1b1d2972bfab76b094c
parenta321dbd14156e624aed3477610b26d4e41db773f
mm: compaction: Fix compiler warning

compact_capture_page() is only used if compaction is enabled so it should
be moved into the corresponding #ifdef.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Acked-by: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c