Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179351
b: refs/heads/master
c: cc8ef6e
h: refs/heads/master
i:
  179349: 5583ad7
  179347: a4f3e9b
  179343: 88b1043
v: v3
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Jan 16, 2010
1 parent d6e641a commit 31036dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2dbe08ddceb4ba2b274abb84326d7e69d454e5c
refs/heads/master: cc8ef6eb21e964b1c5eb97b2d0e8ac9893e1bf86
4 changes: 4 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,10 @@ struct sysinfo {
/* Force a compilation error if condition is constant and true */
#define MAYBE_BUILD_BUG_ON(cond) ((void)sizeof(char[1 - 2 * !!(cond)]))

/* Force a compilation error if a constant expression is not a power of 2 */
#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 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
Expand Down

0 comments on commit 31036dd

Please sign in to comment.