Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2018 16:24:28 +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: r330856 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201803131624.w2DGOSX5005183@repo.freebsd.org>

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

Log:
  MFC r330390:
  Define noinline and __maybe_unused macros 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/compiler.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/compiler.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/compiler.h	Tue Mar 13 16:23:33 2018	(r330855)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/compiler.h	Tue Mar 13 16:24:28 2018	(r330856)
@@ -64,6 +64,7 @@
 #define	__attribute_const__		__attribute__((__const__))
 #undef __always_inline
 #define	__always_inline			inline
+#define	noinline			__noinline
 #define	____cacheline_aligned		__aligned(CACHE_LINE_SIZE)
 
 #define	likely(x)			__builtin_expect(!!(x), 1)
@@ -71,6 +72,7 @@
 #define typeof(x)			__typeof(x)
 
 #define	uninitialized_var(x)		x = x
+#define	__maybe_unused			__unused
 #define	__always_unused			__unused
 #define	__must_check			__result_use_check
 



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