summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-08-25 21:16:14 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-08-26 18:00:17 +1000
commit9596a68b225daf839d87d57e49ee12862625c20b (patch)
tree7a86ac9aa979304240de5797a9372edceffd627a
parent8624541bd21c9f20a11f9b2e486955351c423969 (diff)
revert BUILD_BUG_ON change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--include/linux/compiler.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index d7d313b3a56a..a1c082dde995 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -206,15 +206,9 @@ extern void __chk_io_ptr(const volatile void __iomem *);
* ( The linker trick relies on gcc optimizing out a multiplication with
* constant zero - which should be reasonable enough. )
*/
-#ifndef __ASSEMBLY__
-extern unsigned int __BUILD_BUG_ON_non_constant;
-#endif
-
#define BUILD_BUG_ON(condition) \
do { \
(void)sizeof(char[1 - 2*!!(condition)]); \
- if (!__builtin_constant_p(condition)) \
- __BUILD_BUG_ON_non_constant++; \
} while (0)
/*