vmstat: include compaction.h when CONFIG_COMPACTION
authorNamhyung Kim <namhyung@gmail.com>
Tue, 26 Oct 2010 21:22:04 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:10 +0000 (16:52 -0700)
commit36deb0be314702627aeae1f5737fc84d01dc26c6
treed6f68a2333bcb706921bd47e2fc3813c18487916
parent92c09c041f15fc88b35f8628e07639f52e1fbb38
vmstat: include compaction.h when CONFIG_COMPACTION

This removes following warning from sparse:

 mm/vmstat.c:466:5: warning: symbol 'fragmentation_index' was not declared. Should it be static?

[akpm@linux-foundation.org: move the include to top-of-file]
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c