Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/include/drm Need to mask...
details: https://anonhg.NetBSD.org/src/rev/401c85ec9798
branches: riastradh-drm2
changeset: 788110:401c85ec9798
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:17:14 2013 +0000
description:
Need to mask off IOC_DIRMASK too in DRM_IOCTL_NR.
diffstat:
sys/external/bsd/drm2/dist/include/drm/drmP.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 37f3ef8c5c70 -r 401c85ec9798 sys/external/bsd/drm2/dist/include/drm/drmP.h
--- a/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 02:16:56 2013 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 02:17:14 2013 +0000
@@ -314,7 +314,7 @@
#ifdef __NetBSD__
/* XXX Kludge...is there a better way to do this? */
#define DRM_IOCTL_NR(n) \
- (IOCBASECMD(n) &~ (IOCGROUP(n) << IOCGROUP_SHIFT))
+ (IOCBASECMD(n) &~ (IOC_DIRMASK | (IOCGROUP(n) << IOCGROUP_SHIFT)))
#define DRM_MAJOR cdevsw_lookup_major(&drm_cdevsw)
#else
#define DRM_IOCTL_NR(n) _IOC_NR(n)
Home |
Main Index |
Thread Index |
Old Index