Author: hselasky
Date: Thu Mar 23 13:28:16 2017
New Revision: 315859
URL: https://svnweb.freebsd.org/changeset/base/315859

Log:
  Function macros are preferred in the LinuxKPI.
  
  MFC after:            1 week
  Sponsored by:         Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/asm/atomic.h

Modified: head/sys/compat/linuxkpi/common/include/asm/atomic.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/asm/atomic.h        Thu Mar 23 
11:59:17 2017        (r315858)
+++ head/sys/compat/linuxkpi/common/include/asm/atomic.h        Thu Mar 23 
13:28:16 2017        (r315859)
@@ -191,7 +191,7 @@ atomic_cmpxchg(atomic_t *v, int old, int
        __ret;                                                  \
 })
 
-#define        cmpxchg_relaxed cmpxchg
+#define        cmpxchg_relaxed(...)    cmpxchg(__VA_ARGS__)
 
 #define        xchg(ptr, v) ({                                         \
        __typeof(*(ptr)) __ret;                                 \
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to