diff options
author | Christian König <christian.koenig@amd.com> | 2019-11-04 14:59:01 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2019-11-04 15:02:34 +0300 |
commit | 2869e82eb4ffda7afc76c1ff0d52592df7b0d1c8 (patch) | |
tree | 46a7347f607023c3a6b9d65fc85d524f48c47c43 /drivers/gpu/drm/ttm | |
parent | caa478af48121ea21a8a4d6fe8a1bd467016adba (diff) | |
download | linux-2869e82eb4ffda7afc76c1ff0d52592df7b0d1c8.tar.xz |
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')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_tt.c | 5 |
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; |