]> Git Repo - linux.git/commit
bug.h: prevent double evaulation of `condition' in BUILD_BUG_ON
authorDaniel Santos <[email protected]>
Fri, 22 Feb 2013 00:41:45 +0000 (16:41 -0800)
committerLinus Torvalds <[email protected]>
Fri, 22 Feb 2013 01:22:16 +0000 (17:22 -0800)
commit1d6a0d19c85587581a364850b77f30446810a560
treef82e7ac260a7705459c77bd37bf2733047542921
parentca623c914e82c3351cd657073fdb24a1df8c27b9
bug.h: prevent double evaulation of `condition' in BUILD_BUG_ON

When calling BUILD_BUG_ON in an optimized build using gcc 4.3 and later,
the condition will be evaulated twice, possibily with side-effects.  This
patch eliminates that error.

[[email protected]: tweak code layout]
Signed-off-by: Daniel Santos <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Josh Triplett <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/bug.h
This page took 0.055004 seconds and 4 git commands to generate.