Date: Sun, 21 Oct 2012 13:41:19 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r241814 - user/andre/tcp_workqueue/sys/sys Message-ID: <201210211341.q9LDfJV6086823@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andre Date: Sun Oct 21 13:41:18 2012 New Revision: 241814 URL: http://svn.freebsd.org/changeset/base/241814 Log: Simplify MTX_DEF_SYSINIT(name, desc, opts) by making the name the mutex struct name as well. Modified: user/andre/tcp_workqueue/sys/sys/mutex.h Modified: user/andre/tcp_workqueue/sys/sys/mutex.h ============================================================================== --- user/andre/tcp_workqueue/sys/sys/mutex.h Sun Oct 21 12:53:33 2012 (r241813) +++ user/andre/tcp_workqueue/sys/sys/mutex.h Sun Oct 21 13:41:18 2012 (r241814) @@ -412,9 +412,9 @@ struct mtx_args { int ma_opts; }; -#define MTX_DEF_SYSINIT(name, mtx, desc, opts) \ +#define MTX_DEF_SYSINIT(name, desc, opts) \ MTX_GLOBAL(name); \ - MTX_SYSINIT(name, mtx, desc, opts) + MTX_SYSINIT(name, &name, desc, opts) #define MTX_SYSINIT(name, mtx, desc, opts) \ static struct mtx_args name##_args = { \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210211341.q9LDfJV6086823>