]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/ttm: fix missed conversion of set_pages_array_uc
authorHuang Rui <ray.huang@amd.com>
Wed, 1 Aug 2018 05:49:31 +0000 (13:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Aug 2018 22:22:20 +0000 (17:22 -0500)
This patch fixed the error when do not configure CONFIG_X86, otherwise, below
error will be encountered.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/ttm/ttm_page_alloc_dma.c: In function 'ttm_set_pages_caching':
>> drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:272:7: error: implicit declaration of function 'set_pages_array_uc'; did you mean
+'ttm_set_pages_array_uc'? [-Werror=implicit-function-declaration]
      r = set_pages_array_uc(pages, cpages);
          ^~~~~~~~~~~~~~~~~~
          ttm_set_pages_array_uc
   cc1: some warnings being treated as errors

Reported-by: kbuild test robot <lkp@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c

index 8304917294a2e9542efa8c03cd80a6de3067df39..507be7ac11655235fe83e50404f5470a01a385a6 100644 (file)
@@ -269,7 +269,7 @@ static int ttm_set_pages_caching(struct dma_pool *pool,
        int r = 0;
        /* Set page caching */
        if (pool->type & IS_UC) {
-               r = set_pages_array_uc(pages, cpages);
+               r = ttm_set_pages_array_uc(pages, cpages);
                if (r)
                        pr_err("%s: Failed to set %d pages to uc!\n",
                               pool->dev_name, cpages);