svn commit: r329980 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Feb 25 10:51:40 UTC 2018
Author: hselasky
Date: Sun Feb 25 10:51:39 2018
New Revision: 329980
URL: https://svnweb.freebsd.org/changeset/base/329980
Log:
MFC r329471:
Implement BUILD_BUG_ON_INVALID() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0 at gmail.com>
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h Sun Feb 25 10:48:52 2018 (r329979)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h Sun Feb 25 10:51:39 2018 (r329980)
@@ -89,6 +89,7 @@
#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))
+#define BUILD_BUG_ON_INVALID(expr) while (0) { (void)(expr); }
#define BUG() panic("BUG at %s:%d", __FILE__, __LINE__)
#define BUG_ON(cond) do { \
More information about the svn-src-stable
mailing list