[RFC PATCH] drm/ttm: ttm_pool_apply_caching() can be static

kernel test robot lkp at intel.com
Sun Oct 25 19:01:24 UTC 2020


Signed-off-by: kernel test robot <lkp at intel.com>
---
 ttm_pool.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c
index 86bd173d93a52..a7818b3cd7c6e 100644
--- a/drivers/gpu/drm/ttm/ttm_pool.c
+++ b/drivers/gpu/drm/ttm/ttm_pool.c
@@ -151,8 +151,8 @@ static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching,
 }
 
 /* Apply a new caching to an array of pages */
-int ttm_pool_apply_caching(struct page **first, struct page **last,
-			   enum ttm_caching caching)
+static int ttm_pool_apply_caching(struct page **first, struct page **last,
+				  enum ttm_caching caching)
 {
 #ifdef CONFIG_X86
 	unsigned int num_pages = last - first;


More information about the dri-devel mailing list