svn commit: r315859 - head/sys/compat/linuxkpi/common/include/asm

Hans Petter Selasky hselasky at FreeBSD.org
Thu Mar 23 13:28:18 UTC 2017


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;					\


More information about the svn-src-head mailing list