tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-4.14-wip head: 9f7373596843431b63965965f1059d39600db3a2 commit: d47a6c4783b8461b6c6d24b53ce35b7a3dfa92a1 [38/44] drm/amd/amdgpu: Use new TTM populate/map helper function config: i386-randconfig-a1-08231053 (attached as .config) compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 20160904 reproduce: git checkout d47a6c4783b8461b6c6d24b53ce35b7a3dfa92a1 # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_ttm_tt_populate': >> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:950:6: error: implicit declaration of function 'ttm_populate_and_map_pages' [-Werror=implicit-function-declaration] r = ttm_populate_and_map_pages(adev->dev, >t->ttm); ^ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_ttm_tt_unpopulate': >> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:983:2: error: implicit declaration of function 'ttm_unmap_and_unpopulate_pages' [-Werror=implicit-function-declaration] ttm_unmap_and_unpopulate_pages(adev->dev, >t->ttm); ^ cc1: some warnings being treated as errors vim +/ttm_populate_and_map_pages +950 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 949 > 950 r = ttm_populate_and_map_pages(adev->dev, >t->ttm); 951 trace_mappings: 952 if (likely(!r)) 953 amdgpu_trace_dma_map(ttm); 954 return r; 955 } 956 957 static void amdgpu_ttm_tt_unpopulate(struct ttm_tt *ttm) 958 { 959 struct amdgpu_device *adev; 960 struct amdgpu_ttm_tt *gtt = (void *)ttm; 961 bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); 962 963 if (gtt && gtt->userptr) { 964 kfree(ttm->sg); 965 ttm->page_flags &= ~TTM_PAGE_FLAG_SG; 966 return; 967 } 968 969 if (slave) 970 return; 971 972 adev = amdgpu_ttm_adev(ttm->bdev); 973 974 amdgpu_trace_dma_unmap(ttm); 975 976 #ifdef CONFIG_SWIOTLB 977 if (swiotlb_nr_tbl()) { 978 ttm_dma_unpopulate(>t->ttm, adev->dev); 979 return; 980 } 981 #endif 982 > 983 ttm_unmap_and_unpopulate_pages(adev->dev, >t->ttm); 984 } 985 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel