Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6936 → Rev 7143

/drivers/include/linux/bug.h
20,6 → 20,7
#define BUILD_BUG_ON_MSG(cond, msg) (0)
#define BUILD_BUG_ON(condition) (0)
#define BUILD_BUG() (0)
#define MAYBE_BUILD_BUG_ON(cond) (0)
#else /* __CHECKER__ */
 
/* Force a compilation error if a constant expression is not a power of 2 */
83,6 → 84,14
*/
#define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
 
#define MAYBE_BUILD_BUG_ON(cond) \
do { \
if (__builtin_constant_p((cond))) \
BUILD_BUG_ON(cond); \
else \
BUG_ON(cond); \
} while (0)
 
#endif /* __CHECKER__ */
 
#ifdef CONFIG_GENERIC_BUG