diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-10-03 07:02:51 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-10-03 07:02:51 +0000 |
commit | 929536172cda4288857cdc29b272e61e02fd47bd (patch) | |
tree | f6aafcc059a7ef212f8a854bb3777790d199a8e3 /bsd/drm_os_netbsd.h | |
parent | e187d665e4ffee4990d096d8d3722630b2ba2d46 (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.h | 4 |
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 |