diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-02-08 02:55:43 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-02-08 02:55:46 -0500 |
commit | 6d3e0907b8b239d16720d144e2675ecf10d3bc3b (patch) | |
tree | e0b0743b5f6f82b057cafc4f3687396a6e01a0b4 /include/linux/kernel.h | |
parent | 23577256953c870de9b724c3a2611ce7be6a1e4e (diff) | |
parent | 50200df462023b187d80a99a52f5f2cfe3c86c26 (diff) |
Merge branch 'sched/urgent' into sched/core
Merge reason: Merge dependent fix, update to latest -rc.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 785d7d1099d4..1221d2331a6d 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -735,6 +735,10 @@ struct sysinfo { | |||
735 | /* Force a compilation error if condition is constant and true */ | 735 | /* Force a compilation error if condition is constant and true */ |
736 | #define MAYBE_BUILD_BUG_ON(cond) ((void)sizeof(char[1 - 2 * !!(cond)])) | 736 | #define MAYBE_BUILD_BUG_ON(cond) ((void)sizeof(char[1 - 2 * !!(cond)])) |
737 | 737 | ||
738 | /* Force a compilation error if a constant expression is not a power of 2 */ | ||
739 | #define BUILD_BUG_ON_NOT_POWER_OF_2(n) \ | ||
740 | BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0)) | ||
741 | |||
738 | /* Force a compilation error if condition is true, but also produce a | 742 | /* Force a compilation error if condition is true, but also produce a |
739 | result (of value 0 and type size_t), so the expression can be used | 743 | result (of value 0 and type size_t), so the expression can be used |
740 | e.g. in a structure initializer (or where-ever else comma expressions | 744 | e.g. in a structure initializer (or where-ever else comma expressions |