svn commit: r330390 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Mar 4 18:13:32 UTC 2018
Author: hselasky
Date: Sun Mar 4 18:13:31 2018
New Revision: 330390
URL: https://svnweb.freebsd.org/changeset/base/330390
Log:
Define noinline and __maybe_unused macros in the LinuxKPI.
MFC after: 1 week
Submitted by: Johannes Lundberg <johalun0 at gmail.com>
Sponsored by: Mellanox Technologies
Sponsored by: Limelight Networks
Modified:
head/sys/compat/linuxkpi/common/include/linux/compiler.h
Modified: head/sys/compat/linuxkpi/common/include/linux/compiler.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/compiler.h Sun Mar 4 18:10:18 2018 (r330389)
+++ head/sys/compat/linuxkpi/common/include/linux/compiler.h Sun Mar 4 18:13:31 2018 (r330390)
@@ -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
More information about the svn-src-all
mailing list