Properly wrap the BUILD_BUG() function macro in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
02641ce942
commit
e9e4ec118f
@ -86,7 +86,7 @@
|
||||
#define S64_C(x) x ## LL
|
||||
#define U64_C(x) x ## ULL
|
||||
|
||||
#define BUILD_BUG() CTASSERT(0)
|
||||
#define BUILD_BUG() do { CTASSERT(0); } while (0)
|
||||
#define BUILD_BUG_ON(x) CTASSERT(!(x))
|
||||
#define BUILD_BUG_ON_MSG(x, msg) BUILD_BUG_ON(x)
|
||||
#define BUILD_BUG_ON_NOT_POWER_OF_2(x) BUILD_BUG_ON(!powerof2(x))
|
||||
|
Loading…
x
Reference in New Issue
Block a user