Hi Kevin, FYI, the error/warning still remains. tree: git://people.freedesktop.org/~agd5f/linux.git amd-18.50 head: 88a0039cb034176ee3416dd0c3a49feea2f446ab commit: 7d0741bab20cb328c2c778764efc340896242ccb [790/1415] drm/amdkcl: [RHEL 6] support kmap_atomic funciton for ttm module config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 7d0741bab20cb328c2c778764efc340896242ccb # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=arm All error/warnings (new ones prefixed by >>): drivers/gpu/drm/ttm/ttm_bo_util.c: In function 'ttm_kmap_atomic_prot': drivers/gpu/drm/ttm/ttm_bo_util.c:299:10: error: implicit declaration of function '__kcl__kmap_atomic'; did you mean '__kunmap_atomic'? [-Werror=implicit-function-declaration] return __kcl__kmap_atomic(page); ^~~~~~~~~~~~~~~~~~ __kunmap_atomic >> drivers/gpu/drm/ttm/ttm_bo_util.c:299:10: warning: return makes pointer from integer without a cast [-Wint-conversion] return __kcl__kmap_atomic(page); ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/ttm/ttm_bo_util.c: In function 'ttm_kunmap_atomic_prot': >> drivers/gpu/drm/ttm/ttm_bo_util.c:315:3: error: implicit declaration of function '__kcl__kunmap_atomic'; did you mean '__ttm_kunmap_atomic'? [-Werror=implicit-function-declaration] __kcl__kunmap_atomic(addr); ^~~~~~~~~~~~~~~~~~~~ __ttm_kunmap_atomic cc1: some warnings being treated as errors vim +315 drivers/gpu/drm/ttm/ttm_bo_util.c 280 281 282 /** 283 * ttm_kmap_atomic_prot - Efficient kernel map of a single page with 284 * specified page protection. 285 * 286 * @page: The page to map. 287 * @prot: The page protection. 288 * 289 * This function maps a TTM page using the kmap_atomic api if available, 290 * otherwise falls back to vmap. The user must make sure that the 291 * specified page does not have an aliased mapping with a different caching 292 * policy unless the architecture explicitly allows it. Also mapping and 293 * unmapping using this api must be correctly nested. Unmapping should 294 * occur in the reverse order of mapping. 295 */ 296 void *ttm_kmap_atomic_prot(struct page *page, pgprot_t prot) 297 { 298 if (pgprot_val(prot) == pgprot_val(PAGE_KERNEL)) > 299 return __kcl__kmap_atomic(page); 300 else 301 return __ttm_kmap_atomic_prot(page, prot); 302 } 303 EXPORT_SYMBOL(ttm_kmap_atomic_prot); 304 305 /** 306 * ttm_kunmap_atomic_prot - Unmap a page that was mapped using 307 * ttm_kmap_atomic_prot. 308 * 309 * @addr: The virtual address from the map. 310 * @prot: The page protection. 311 */ 312 void ttm_kunmap_atomic_prot(void *addr, pgprot_t prot) 313 { 314 if (pgprot_val(prot) == pgprot_val(PAGE_KERNEL)) > 315 __kcl__kunmap_atomic(addr); 316 else 317 __ttm_kunmap_atomic(addr); 318 } 319 EXPORT_SYMBOL(ttm_kunmap_atomic_prot); 320 --- 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