diff mbox

[RFC,radeon-alex] drm/ttm: ttm_tt_init_fields() can be static

Message ID 20180307030735.GA24778@lkp-ne02 (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu March 7, 2018, 3:07 a.m. UTC
Fixes: 69665e4b7915 ("drm/ttm: add ttm_sg_tt_init")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 ttm_tt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c
index 9711331..45c8ae1 100644
--- a/drivers/gpu/drm/ttm/ttm_tt.c
+++ b/drivers/gpu/drm/ttm/ttm_tt.c
@@ -237,8 +237,8 @@  void ttm_tt_destroy(struct ttm_tt *ttm)
 	ttm->func->destroy(ttm);
 }
 
-void ttm_tt_init_fields(struct ttm_tt *ttm, struct ttm_bo_device *bdev,
-			unsigned long size, uint32_t page_flags)
+static void ttm_tt_init_fields(struct ttm_tt *ttm, struct ttm_bo_device *bdev,
+			       unsigned long size, uint32_t page_flags)
 {
 	ttm->bdev = bdev;
 	ttm->num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;