Needed for the new align.h. Signed-off-by: Mathieu Desnoyers CC: Alexander Shishkin CC: Russell King - ARM Linux CC: linux-arm-kernel@lists.infradead.org CC: Imre Deak CC: Jamie Lokier CC: rostedt@goodmis.org CC: mingo@elte.hu CC: Alexey Dobriyan CC: "Kirill A. Shutemov" --- include/linux/kernel.h | 4 ++++ 1 file changed, 4 insertions(+) Index: linux.trees.git/include/linux/kernel.h =================================================================== --- linux.trees.git.orig/include/linux/kernel.h 2010-08-17 22:10:32.000000000 -0400 +++ linux.trees.git/include/linux/kernel.h 2010-08-17 22:12:11.000000000 -0400 @@ -760,6 +760,10 @@ struct sysinfo { #define BUILD_BUG_ON_NOT_POWER_OF_2(n) \ BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0)) +/* Force a compilation error if condition is constant and not a power of 2 */ +#define MAYBE_BUILD_BUG_ON_NOT_POWER_OF_2(n) \ + MAYBE_BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0)) + /* Force a compilation error if condition is true, but also produce a result (of value 0 and type size_t), so the expression can be used e.g. in a structure initializer (or where-ever else comma expressions