drm/ttm: ttm_tt_init_fields() can be static
authorChristian König <christian.koenig@amd.com>
Mon, 4 Nov 2019 11:59:01 +0000 (12:59 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 4 Nov 2019 12:02:34 +0000 (13:02 +0100)
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/
drivers/gpu/drm/ttm/ttm_tt.c

index e0e9b4f..2ec448e 100644 (file)
@@ -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;