Commit 36deb0be authored by Namhyung Kim's avatar Namhyung Kim Committed by Linus Torvalds

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?

[ move the include to top-of-file]
Signed-off-by: default avatarNamhyung Kim <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 92c09c04
......@@ -18,6 +18,7 @@
#include <linux/sched.h>
#include <linux/math64.h>
#include <linux/writeback.h>
#include <linux/compaction.h>
DEFINE_PER_CPU(struct vm_event_state, vm_event_states) = {{0}};
......@@ -395,6 +396,7 @@ void zone_statistics(struct zone *preferred_zone, struct zone *z)
struct contig_page_info {
unsigned long free_pages;
unsigned long free_blocks_total;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment