]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bug.h: Prevent double evaulation of in BUILD_BUG_ON
authorDaniel Santos <daniel.santos@pobox.com>
Thu, 7 Feb 2013 01:25:46 +0000 (12:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:45:18 +0000 (16:45 +1100)
commit08e01e6da99674e157c757a2d082586745ad7694
treedbbcfc8c5e0e8ba0ac04d4a438d89b0580bbfad6
parent3856477841a0b0ac3ca58bfc88bf420a6ec97b4f
bug.h: Prevent double evaulation of 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.

Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Rientjes <rientjes@google.com>
Cc: Joe Perches <joe@perches.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/bug.h