]> git.baikalelectronics.ru Git - kernel.git/commit
mm: page_alloc: catch out-of-date list of page flag names
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 29 May 2012 22:06:44 +0000 (15:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:23 +0000 (16:22 -0700)
commit506429b256a089d8f919ec76a238d3078fa8899b
treea0efadad1426fdcec66e659466dc2f3c7ca63ea9
parent4369dfc7adb88a143bcf8653dbe64a63cb6b2bb9
mm: page_alloc: catch out-of-date list of page flag names

String tables with names of enum items are always prone to go out of
sync with the enums themselves.  Ensure during compile time that the
name table of page flags has the same size as the page flags enum.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c