]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm: Drop drm_gem_object_put_locked()
authorRob Clark <robdclark@chromium.org>
Wed, 28 Jul 2021 01:06:09 +0000 (18:06 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 28 Jul 2021 01:09:18 +0000 (18:09 -0700)
Now that no one is using it, remove it.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://lore.kernel.org/r/20210728010632.2633470-5-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/drm_gem.c
include/drm/drm_gem.h

index d62fb1a3c916708799129fdac6977c72313dd424..a34525332bef484b151f150ea055f4346b3ee430 100644 (file)
@@ -973,28 +973,6 @@ drm_gem_object_free(struct kref *kref)
 }
 EXPORT_SYMBOL(drm_gem_object_free);
 
-/**
- * drm_gem_object_put_locked - release a GEM buffer object reference
- * @obj: GEM buffer object
- *
- * This releases a reference to @obj. Callers must hold the
- * &drm_device.struct_mutex lock when calling this function, even when the
- * driver doesn't use &drm_device.struct_mutex for anything.
- *
- * For drivers not encumbered with legacy locking use
- * drm_gem_object_put() instead.
- */
-void
-drm_gem_object_put_locked(struct drm_gem_object *obj)
-{
-       if (obj) {
-               WARN_ON(!mutex_is_locked(&obj->dev->struct_mutex));
-
-               kref_put(&obj->refcount, drm_gem_object_free);
-       }
-}
-EXPORT_SYMBOL(drm_gem_object_put_locked);
-
 /**
  * drm_gem_vm_open - vma->ops->open implementation for GEM
  * @vma: VM area structure
index 240049566592d1b053d2c500f9d11792c0dbe951..35e7f44c2a75131ae5648e6f1be2f6756e77ed75 100644 (file)
@@ -384,8 +384,6 @@ drm_gem_object_put(struct drm_gem_object *obj)
                __drm_gem_object_put(obj);
 }
 
-void drm_gem_object_put_locked(struct drm_gem_object *obj);
-
 int drm_gem_handle_create(struct drm_file *file_priv,
                          struct drm_gem_object *obj,
                          u32 *handlep);