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 <johal...@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
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to