Needed for the new align.h.

Signed-off-by: Mathieu Desnoyers <[email protected]>
CC: Alexander Shishkin <[email protected]>
CC: Russell King - ARM Linux <[email protected]>
CC: [email protected]
CC: Imre Deak <[email protected]>
CC: Jamie Lokier <[email protected]>
CC: [email protected]
CC: [email protected]
CC: Alexey Dobriyan <[email protected]>
CC: "Kirill A. Shutemov" <[email protected]>
---
 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


_______________________________________________
ltt-dev mailing list
[email protected]
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev

Reply via email to