Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/

+3 -2
+3 -2
drivers/gpu/drm/ttm/ttm_tt.c
··· 223 223 ttm->func->destroy(ttm); 224 224 } 225 225 226 - void ttm_tt_init_fields(struct ttm_tt *ttm, struct ttm_buffer_object *bo, 227 - uint32_t page_flags) 226 + static void ttm_tt_init_fields(struct ttm_tt *ttm, 227 + struct ttm_buffer_object *bo, 228 + uint32_t page_flags) 228 229 { 229 230 ttm->bdev = bo->bdev; 230 231 ttm->num_pages = bo->num_pages;