summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_tt.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2019-11-04 12:59:01 +0100
committerChristian König <christian.koenig@amd.com>2019-11-04 13:02:34 +0100
commit2869e82eb4ffda7afc76c1ff0d52592df7b0d1c8 (patch)
tree46a7347f607023c3a6b9d65fc85d524f48c47c43 /drivers/gpu/drm/ttm/ttm_tt.c
parentcaa478af48121ea21a8a4d6fe8a1bd467016adba (diff)
downloadlinux-2869e82eb4ffda7afc76c1ff0d52592df7b0d1c8.tar.gz
linux-2869e82eb4ffda7afc76c1ff0d52592df7b0d1c8.tar.bz2
linux-2869e82eb4ffda7afc76c1ff0d52592df7b0d1c8.zip
drm/ttm: ttm_tt_init_fields() can be static
Fixes: 75a57669cbc8 ("drm/ttm: add ttm_sg_tt_init") Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.kernel.org/patch/10263323/
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_tt.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_tt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c
index e0e9b4f69db6..2ec448e1d663 100644
--- a/drivers/gpu/drm/ttm/ttm_tt.c
+++ b/drivers/gpu/drm/ttm/ttm_tt.c
@@ -223,8 +223,9 @@ void ttm_tt_destroy(struct ttm_tt *ttm)
ttm->func->destroy(ttm);
}
-void ttm_tt_init_fields(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
- uint32_t page_flags)
+static void ttm_tt_init_fields(struct ttm_tt *ttm,
+ struct ttm_buffer_object *bo,
+ uint32_t page_flags)
{
ttm->bdev = bo->bdev;
ttm->num_pages = bo->num_pages;