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

drm/ttm: fix missed conversion of set_pages_array_uc

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>

authored by

Huang Rui and committed by
Alex Deucher
fe710322 ddf74e79

+1 -1
+1 -1
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
··· 269 269 int r = 0; 270 270 /* Set page caching */ 271 271 if (pool->type & IS_UC) { 272 - r = set_pages_array_uc(pages, cpages); 272 + r = ttm_set_pages_array_uc(pages, cpages); 273 273 if (r) 274 274 pr_err("%s: Failed to set %d pages to uc!\n", 275 275 pool->dev_name, cpages);