mirror of https://gitee.com/openkylin/linux.git
drm/ttm: ttm_tt_init_fields() can be static
Fixes: 75a57669cb
("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/
This commit is contained in:
parent
caa478af48
commit
2869e82eb4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue