Date: Fri, 30 Dec 2016 16:26:54 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r310828 - head/sys/dev/xdma Message-ID: <201612301626.uBUGQs1w075789@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: br Date: Fri Dec 30 16:26:54 2016 New Revision: 310828 URL: https://svnweb.freebsd.org/changeset/base/310828 Log: Add parenthesis. Noticed by: hps Sponsored by: DARPA, AFRL Modified: head/sys/dev/xdma/xdma.c Modified: head/sys/dev/xdma/xdma.c ============================================================================== --- head/sys/dev/xdma/xdma.c Fri Dec 30 16:23:13 2016 (r310827) +++ head/sys/dev/xdma/xdma.c Fri Dec 30 16:26:54 2016 (r310828) @@ -73,9 +73,9 @@ static struct mtx xdma_mtx; /* * Per channel locks. */ -#define XCHAN_LOCK(xchan) mtx_lock(&xchan->mtx_lock) -#define XCHAN_UNLOCK(xchan) mtx_unlock(&xchan->mtx_lock) -#define XCHAN_ASSERT_LOCKED(xchan) mtx_assert(&xchan->mtx_lock, MA_OWNED) +#define XCHAN_LOCK(xchan) mtx_lock(&(xchan)->mtx_lock) +#define XCHAN_UNLOCK(xchan) mtx_unlock(&(xchan)->mtx_lock) +#define XCHAN_ASSERT_LOCKED(xchan) mtx_assert(&(xchan)->mtx_lock, MA_OWNED) /* * Allocate virtual xDMA channel.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612301626.uBUGQs1w075789>