diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 72869ea5c51387fc2594a05a5b78d17be89d7d4a..5712898c951b34add6816cbf5c1a71fba00f3c6c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5985,6 +5985,8 @@ static void dump_page_flags(unsigned long flags) unsigned long mask; int i; + BUILD_BUG_ON(ARRAY_SIZE(pageflag_names) - 1 != __NR_PAGEFLAGS); + printk(KERN_ALERT "page flags: %#lx(", flags); /* remove zone id */