[PATCH 12/12] vmstat: include compaction.h when CONFIG_COMPACTION

From: Namhyung Kim
Date: Wed Sep 29 2010 - 23:51:18 EST


This removes following warning from sparse:

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

Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
---
mm/vmstat.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mm/vmstat.c b/mm/vmstat.c
index 355a9e6..30054ea 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -394,6 +394,8 @@ void zone_statistics(struct zone *preferred_zone, struct zone *z)
#endif

#ifdef CONFIG_COMPACTION
+#include <linux/compaction.h>
+
struct contig_page_info {
unsigned long free_pages;
unsigned long free_blocks_total;
--
1.7.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/