Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2018 18:19:45 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330392 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201803041819.w24IJjeZ087660@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sun Mar  4 18:19:44 2018
New Revision: 330392
URL: https://svnweb.freebsd.org/changeset/base/330392

Log:
  Implement BUILD_BUG() function macro in the LinuxKPI.
  
  MFC after:	1 week
  Submitted by:	Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:	Mellanox Technologies
  Sponsored by:	Limelight Networks

Modified:
  head/sys/compat/linuxkpi/common/include/linux/kernel.h

Modified: head/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kernel.h	Sun Mar  4 18:17:54 2018	(r330391)
+++ head/sys/compat/linuxkpi/common/include/linux/kernel.h	Sun Mar  4 18:19:44 2018	(r330392)
@@ -86,6 +86,7 @@
 #define	S64_C(x) x ## LL
 #define	U64_C(x) x ## ULL
 
+#define	BUILD_BUG()			CTASSERT(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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803041819.w24IJjeZ087660>