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/drm Remove drm prime stu...



details:   https://anonhg.NetBSD.org/src/rev/319f70feb0b9
branches:  riastradh-drm2
changeset: 788239:319f70feb0b9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:52:06 2013 +0000

description:
Remove drm prime stuff from drm_gem.c.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_gem.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (39 lines):

diff -r 3aec6e58f67d -r 319f70feb0b9 sys/external/bsd/drm2/dist/drm/drm_gem.c
--- a/sys/external/bsd/drm2/dist/drm/drm_gem.c  Wed Jul 24 02:51:51 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_gem.c  Wed Jul 24 02:52:06 2013 +0000
@@ -204,6 +204,7 @@
 }
 EXPORT_SYMBOL(drm_gem_object_alloc);
 
+#ifndef __NetBSD__                     /* XXX drm prime */
 static void
 drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp)
 {
@@ -216,6 +217,7 @@
                                obj->export_dma_buf);
        }
 }
+#endif
 
 /**
  * Removes the mapping from handle to filp for this object.
@@ -249,7 +251,9 @@
        idr_remove(&filp->object_idr, handle);
        spin_unlock(&filp->table_lock);
 
+#ifndef __NetBSD__
        drm_gem_remove_prime_handles(obj, filp);
+#endif
 
        if (dev->driver->gem_close_object)
                dev->driver->gem_close_object(obj, filp);
@@ -544,7 +548,9 @@
        struct drm_gem_object *obj = ptr;
        struct drm_device *dev = obj->dev;
 
+#ifndef __NetBSD__                     /* XXX drm prime */
        drm_gem_remove_prime_handles(obj, file_priv);
+#endif
 
        if (dev->driver->gem_close_object)
                dev->driver->gem_close_object(obj, file_priv);



Home | Main Index | Thread Index | Old Index