Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2018 16:26:57 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330858 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201803131626.w2DGQvwJ005404@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Mar 13 16:26:57 2018
New Revision: 330858
URL: https://svnweb.freebsd.org/changeset/base/330858

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

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	Tue Mar 13 16:25:28 2018	(r330857)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h	Tue Mar 13 16:26:57 2018	(r330858)
@@ -86,6 +86,7 @@
 #define	S64_C(x) x ## LL
 #define	U64_C(x) x ## ULL
 
+#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))



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