Properly wrap the BUILD_BUG() function macro in the LinuxKPI.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-03-04 19:42:50 +00:00
parent 02641ce942
commit e9e4ec118f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330408

View File

@ -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))