drm/gem: make drm_gem_object_handle_unreference_unlocked static
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 22:02:39 +0000 (00:02 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Aug 2013 02:53:46 +0000 (12:53 +1000)
No one outside of drm should use this, the official interfaces are
drm_gem_handle_create and drm_gem_handle_delete. The handle refcounting
is purely an implementation detail of gem.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
include/drm/drmP.h

index b8a8132becefbba856e4645f640266c9526d84af..52548fd34b153eb4a28de4a2820eebf5d411d4b6 100644 (file)
@@ -231,7 +231,7 @@ static void drm_gem_object_handle_free(struct drm_gem_object *obj)
        }
 }
 
-void
+static void
 drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj)
 {
        if (WARN_ON(obj->handle_count == 0))
index 57dce6081d7391f9084c46336a0db641c049ccbb..7782dbbbe1260a72ebd00bcf21397c65a3be0888 100644 (file)
@@ -1580,7 +1580,6 @@ int drm_gem_handle_create(struct drm_file *file_priv,
                          u32 *handlep);
 int drm_gem_handle_delete(struct drm_file *filp, u32 handle);
 
-void drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj);
 
 void drm_gem_free_mmap_offset(struct drm_gem_object *obj);
 int drm_gem_create_mmap_offset(struct drm_gem_object *obj);