Re: [PATCH] memcg: add BUILD_BUG_ON() for string tables

From: Johannes Weiner
Date: Mon Jan 12 2015 - 17:13:17 EST


On Mon, Jan 12, 2015 at 10:54:23AM -0800, Greg Thelen wrote:
> 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@xxxxxxxxxx>

Looks good to me, thanks Greg.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/