summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-14 22:02:39 (GMT)
committerInki Dae <inki.dae@samsung.com>2014-10-15 11:05:17 (GMT)
commitd83d665af32d52a6fdb2be9b6b95e10d1eb58572 (patch)
tree110727cc531cb2f4295cd4714fb38994245e1fa5
parent0f4bc8bf331e57b6f3807baffec45fe3de265bb2 (diff)
downloadlinux-3.10-d83d665af32d52a6fdb2be9b6b95e10d1eb58572.zip
linux-3.10-d83d665af32d52a6fdb2be9b6b95e10d1eb58572.tar.gz
linux-3.10-d83d665af32d52a6fdb2be9b6b95e10d1eb58572.tar.bz2
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 ae67e1b..58e2756 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -294,7 +294,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))
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 4b854a8..732adc1 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1719,7 +1719,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);