]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm: Update docs around gem_free_object
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 18 Jul 2017 06:33:37 +0000 (08:33 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Jul 2017 11:22:39 +0000 (13:22 +0200)
Not all places correctly stated that gem_free_object_unlocked is the
one to use.

Reported-by: Eric Anholt <eric@anholt.net
Cc: Eric Anholt <eric@anholt.net
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170718063337.31942-1-daniel.vetter@ffwll.ch
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Documentation/gpu/drm-mm.rst
drivers/gpu/drm/drm_gem_cma_helper.c

index 9412798645c1ae84e9d3d1a252d4ff9b0b12a1b3..ce115caea06fc3288f3ee29ef97769c856986406 100644 (file)
@@ -191,7 +191,7 @@ acquired and release by :c:func:`calling drm_gem_object_get()` and
 holding the lock.
 
 When the last reference to a GEM object is released the GEM core calls
-the :c:type:`struct drm_driver <drm_driver>` gem_free_object
+the :c:type:`struct drm_driver <drm_driver>` gem_free_object_unlocked
 operation. That operation is mandatory for GEM-enabled drivers and must
 free the GEM object and all associated resources.
 
index bc28e75752546c9390917cbe26e9ce7938183daf..275ab872b34f6cba602a8b267119cf7234e5a02d 100644 (file)
@@ -177,7 +177,7 @@ drm_gem_cma_create_with_handle(struct drm_file *file_priv,
  * This function frees the backing memory of the CMA GEM object, cleans up the
  * GEM object state and frees the memory used to store the object itself.
  * Drivers using the CMA helpers should set this as their
- * &drm_driver.gem_free_object callback.
+ * &drm_driver.gem_free_object_unlocked callback.
  */
 void drm_gem_cma_free_object(struct drm_gem_object *gem_obj)
 {