summaryrefslogtreecommitdiff
path: root/include
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-09-04 17:52:12 +1000
commit27c382e94672b42c8fe00a9421e67e13c301071a (patch)
tree191ae9b48c54647a525b3a5c9b55a48737f22831 /include
parent0f6dc77dd57b6cbefbb7c036bd76452dcb0e55e6 (diff)
revert BUILD_BUG_ON change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include')
-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)
/*