diff --git a/mm/vmstat.c b/mm/vmstat.c index d1c02a4fe9f85d056340752513b327ea92703609..439a73d53c9ed4536e47368c40dfb8aec134488f 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1680,6 +1680,8 @@ static void *vmstat_start(struct seq_file *m, loff_t *pos) stat_items_size += sizeof(struct vm_event_state); #endif + BUILD_BUG_ON(stat_items_size != + ARRAY_SIZE(vmstat_text) * sizeof(unsigned long)); v = kmalloc(stat_items_size, GFP_KERNEL); m->private = v; if (!v)