Go to the documentation of this file.
15 #define BUILD_BUG_ON_NOT_POWER_OF_2(n)
16 #define BUILD_BUG_ON_ZERO(e) (0)
17 #define BUILD_BUG_ON_NULL(e) ((void*)0)
18 #define BUILD_BUG_ON_INVALID(e) (0)
19 #define BUILD_BUG_ON(condition)
20 #define BUILD_BUG() (0)
24 #define BUILD_BUG_ON_NOT_POWER_OF_2(n) \
25 BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0))
31 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
32 #define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); }))
39 #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e))))
57 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
59 extern int __build_bug_on_failed;
60 #define BUILD_BUG_ON(condition) \
62 ((void)sizeof(char[1 - 2*!!(condition)])); \
63 if (condition) __build_bug_on_failed = 1; \
76 extern void __build_bug_failed(void) \
77 __linktime_error("BUILD_BUG failed"); \
78 __build_bug_failed(); \
83 #ifdef CONFIG_GENERIC_BUG
86 static inline int is_warning_bug(
const struct bug_entry *bug)
88 return bug->
flags & BUGFLAG_WARNING;
91 const struct bug_entry *
find_bug(
unsigned long bugaddr);