Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308845
b: refs/heads/master
c: baf05aa
h: refs/heads/master
i:
  308843: fe40ad0
v: v3
  • Loading branch information
Konstantin Khlebnikov authored and Linus Torvalds committed May 29, 2012
1 parent 9f4d0e3 commit c18b028
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 5febcbe99d4766cc383909c447e002e63d8b4592
refs/heads/master: baf05aa9271bdbc07d3160035a231abc5fbd429a
7 changes: 7 additions & 0 deletions trunk/include/linux/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ struct pt_regs;
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
#define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); }))

/*
* BUILD_BUG_ON_INVALID() permits the compiler to check the validity of the
* expression but avoids the generation of any code, even if that expression
* has side-effects.
*/
#define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))

/**
* BUILD_BUG_ON - break compile if a condition is true.
* @condition: the condition which the compiler should know is false.
Expand Down

0 comments on commit c18b028

Please sign in to comment.