summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-26 17:42:36 +1000
committerDave Airlie <airlied@redhat.com>2008-08-26 17:42:36 +1000
commitc72a4e20e8bb5cb0ec89eaf6effa0cea9c880a03 (patch)
treed71d8ed60b3a448b6322467c9b2793fbd06f5377 /linux-core
parent361ab10d2fb0c7ad73e54d92af2563194dbf7080 (diff)
drm/ttm: export drm_bo_add_ttm
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bo.c3
-rw-r--r--linux-core/drm_objects.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index ec63fa2a..e3ee497a 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -132,7 +132,7 @@ static void drm_bo_vm_post_move(struct drm_buffer_object *bo)
* Call bo->mutex locked.
*/
-static int drm_bo_add_ttm(struct drm_buffer_object *bo)
+int drm_bo_add_ttm(struct drm_buffer_object *bo)
{
struct drm_device *dev = bo->dev;
int ret = 0;
@@ -174,6 +174,7 @@ static int drm_bo_add_ttm(struct drm_buffer_object *bo)
return ret;
}
+EXPORT_SYMBOL(drm_bo_add_ttm);
static int drm_bo_handle_move_mem(struct drm_buffer_object *bo,
struct drm_bo_mem_reg *mem,
diff --git a/linux-core/drm_objects.h b/linux-core/drm_objects.h
index 3eb8b902..2493a804 100644
--- a/linux-core/drm_objects.h
+++ b/linux-core/drm_objects.h
@@ -801,6 +801,7 @@ extern void drm_bo_takedown_vm_locked(struct drm_buffer_object *bo);
* drm_bo_move.c
*/
+extern int drm_bo_add_ttm(struct drm_buffer_object *bo);
extern int drm_bo_move_ttm(struct drm_buffer_object *bo,
int evict, int no_wait,
struct drm_bo_mem_reg *new_mem);