Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 02:26:23 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/dist/drm [riastradh-drm2]: drm_ioctl.c

Log Message:
Disable DRM_IOCTL_GET_CLIENT (drmGetClient in libdrm) for now.

It does not appear to be needed by anything but diagnostic tools, and
it requires bogus kernel state to be maintained.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.2 -r1.1.1.1.2.3 \
    src/sys/external/bsd/drm2/dist/drm/drm_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/drm_ioctl.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_ioctl.c:1.1.1.1.2.2 src/sys/external/bsd/drm2/dist/drm/drm_ioctl.c:1.1.1.1.2.3
--- src/sys/external/bsd/drm2/dist/drm/drm_ioctl.c:1.1.1.1.2.2	Tue Jul 23 21:28:21 2013
+++ src/sys/external/bsd/drm2/dist/drm/drm_ioctl.c	Wed Jul 24 02:26:23 2013
@@ -203,6 +203,7 @@ int drm_getmap(struct drm_device *dev, v
 int drm_getclient(struct drm_device *dev, void *data,
 		  struct drm_file *file_priv)
 {
+#ifndef __NetBSD__		/* XXX Too scary to contemplate.  */
 	struct drm_client *client = data;
 	struct drm_file *pt;
 	int idx;
@@ -225,6 +226,7 @@ int drm_getclient(struct drm_device *dev
 		}
 	}
 	mutex_unlock(&dev->struct_mutex);
+#endif
 
 	return -EINVAL;
 }

Reply via email to