summaryrefslogtreecommitdiff
path: root/bsd/drm_os_netbsd.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-10-03 07:02:51 +0000
committerEric Anholt <anholt@freebsd.org>2003-10-03 07:02:51 +0000
commit929536172cda4288857cdc29b272e61e02fd47bd (patch)
treef6aafcc059a7ef212f8a854bb3777790d199a8e3 /bsd/drm_os_netbsd.h
parente187d665e4ffee4990d096d8d3722630b2ba2d46 (diff)
Stylistic preparation for SMPng locking work: DRM_LOCK/DRM_UNLOCK have side
effects, so make them look like functions (add parenthesis).
Diffstat (limited to 'bsd/drm_os_netbsd.h')
-rw-r--r--bsd/drm_os_netbsd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd/drm_os_netbsd.h b/bsd/drm_os_netbsd.h
index 8053f874..1290e848 100644
--- a/bsd/drm_os_netbsd.h
+++ b/bsd/drm_os_netbsd.h
@@ -112,8 +112,8 @@ extern struct cfdriver DRM(cd);
* code for that is not yet written */
#define DRMFILE void *
#define DRM_IOCTL_ARGS dev_t kdev, u_long cmd, caddr_t data, int flags, DRM_STRUCTPROC *p, DRMFILE filp
-#define DRM_LOCK lockmgr(&dev->dev_lock, LK_EXCLUSIVE, NULL)
-#define DRM_UNLOCK lockmgr(&dev->dev_lock, LK_RELEASE, NULL)
+#define DRM_LOCK() lockmgr(&dev->dev_lock, LK_EXCLUSIVE, NULL)
+#define DRM_UNLOCK() lockmgr(&dev->dev_lock, LK_RELEASE, NULL)
#define DRM_SUSER(p) suser(p->p_ucred, &p->p_acflag)
#define DRM_TASKQUEUE_ARGS void *dev, int pending
#define DRM_IRQ_ARGS void *arg