Date: Thu, 23 Mar 2017 13:28:17 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315859 - head/sys/compat/linuxkpi/common/include/asm Message-ID: <201703231328.v2NDSHaV022164@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703231328.v2NDSHaV022164>