]> 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>
Thu, 7 Feb 2013 01:25:45 +0000 (12:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:45:18 +0000 (16:45 +1100)
commit3856477841a0b0ac3ca58bfc88bf420a6ec97b4f
tree66416f6ace1a72e00846486abaa2742a8d02909a
parent7f385d555cee8a64603575a76295eccd74c1950d
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