]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bug.h: Fix BUILD_BUG_ON macro in __CHECKER__
authorDaniel Santos <daniel.santos@pobox.com>
Wed, 20 Feb 2013 02:13:30 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:00 +0000 (16:52 +1100)
commit06e79baa4613b4688c11e07ef7702e6db13ca87f
tree37fc9e2e1589dc4e5b54e5647c371837e38cf4f5
parent710b33fdcb820913714f1618451ec89240be3816
bug.h: Fix BUILD_BUG_ON macro in __CHECKER__

When __CHECKER__ is defined, we disable all of the BUILD_BUG.* macros.
However, both BUILD_BUG_ON_NOT_POWER_OF_2 and BUILD_BUG_ON was evaluating
to nothing in this case, and we want (0) since this is a function-like
macro that will be followed by a semicolon.

Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Acked-by: Borislav Petkov <bp@alien8.de>
Cc: Andi Kleen <ak@linux.intel.com>
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