aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-14 18:02:39 -0400
committerDave Airlie <airlied@redhat.com>2013-08-20 22:53:46 -0400
commitbecee2a57fd2b64c53ebef58277fbca895cf8ec1 (patch)
tree659fb5f365394aa3a898e7ba5aa950f527aecdec
parent730c4ff95eb54e5bab39357baddd0aa6da10d4fb (diff)
drm/gem: make drm_gem_object_handle_unreference_unlocked static
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>
-rw-r--r--drivers/gpu/drm/drm_gem.c2
-rw-r--r--include/drm/drmP.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index b8a8132becef..52548fd34b15 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -231,7 +231,7 @@ static void drm_gem_object_handle_free(struct drm_gem_object *obj)
231 } 231 }
232} 232}
233 233
234void 234static void
235drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj) 235drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj)
236{ 236{
237 if (WARN_ON(obj->handle_count == 0)) 237 if (WARN_ON(obj->handle_count == 0))
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 57dce6081d73..7782dbbbe126 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1580,7 +1580,6 @@ int drm_gem_handle_create(struct drm_file *file_priv,
1580 u32 *handlep); 1580 u32 *handlep);
1581int drm_gem_handle_delete(struct drm_file *filp, u32 handle); 1581int drm_gem_handle_delete(struct drm_file *filp, u32 handle);
1582 1582
1583void drm_gem_object_handle_unreference_unlocked(struct drm_gem_object *obj);
1584 1583
1585void drm_gem_free_mmap_offset(struct drm_gem_object *obj); 1584void drm_gem_free_mmap_offset(struct drm_gem_object *obj);
1586int drm_gem_create_mmap_offset(struct drm_gem_object *obj); 1585int drm_gem_create_mmap_offset(struct drm_gem_object *obj);