memcg: add BUILD_BUG_ON() for string tables
authorGreg Thelen <gthelen@google.com>
Wed, 11 Feb 2015 23:25:58 +0000 (15:25 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Feb 2015 01:06:02 +0000 (17:06 -0800)
commit0ca44b148ef2596882742dc03ef1c3adcd40f03b
tree5bd974396d0348cb6fd03e588302c8cc50716c98
parent90cbc2508827e1e15dca23361c33cc26dd2b9e99
memcg: add BUILD_BUG_ON() for string tables

Use BUILD_BUG_ON() to compile assert that memcg string tables are in sync
with corresponding enums.  There aren't currently any issues with these
tables.  This is just defensive.

Signed-off-by: Greg Thelen <gthelen@google.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c