Hi "Thomas, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-tip/drm-tip] [cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master drm/drm-next v5.13-rc3 next-20210528] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Thomas-Hellstr-m/Move-LMEM-VRAM-management-over-to-TTM/20210528-185923 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: arm-randconfig-r015-20210530 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bc6799f2f79f0ae87e9f1ebf9d25ba799fbd25a9) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/3c813341ece14cf8144672b0645f790d394a93fb git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Thomas-Hellstr-m/Move-LMEM-VRAM-management-over-to-TTM/20210528-185923 git checkout 3c813341ece14cf8144672b0645f790d394a93fb # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/gpu/drm/drm_cache.c:316:54: error: use of undeclared identifier 'has_movntdqa' if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) { ^ >> drivers/gpu/drm/drm_cache.c:316:54: error: use of undeclared identifier 'has_movntdqa' >> drivers/gpu/drm/drm_cache.c:316:54: error: use of undeclared identifier 'has_movntdqa' >> drivers/gpu/drm/drm_cache.c:316:54: error: use of undeclared identifier 'has_movntdqa' >> drivers/gpu/drm/drm_cache.c:316:32: error: invalid argument type 'void' to unary expression if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/jump_label.h:495:34: note: expanded from macro 'static_branch_likely' #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:79:28: note: expanded from macro 'likely_notrace' # define likely_notrace(x) likely(x) ^~~~~~~~~ include/linux/compiler.h:77:38: note: expanded from macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^~~~ >> drivers/gpu/drm/drm_cache.c:317:3: error: implicit declaration of function '__drm_memcpy_from_wc' [-Werror,-Wimplicit-function-declaration] __drm_memcpy_from_wc(dst->is_iomem ? ^ drivers/gpu/drm/drm_cache.c:317:3: note: did you mean 'drm_memcpy_from_wc'? drivers/gpu/drm/drm_cache.c:309:6: note: 'drm_memcpy_from_wc' declared here void drm_memcpy_from_wc(struct dma_buf_map *dst, ^ 6 errors generated. vim +/has_movntdqa +316 drivers/gpu/drm/drm_cache.c 298 299 /** 300 * drm_memcpy_from_wc - Perform the fastest available memcpy from a source 301 * that may be WC. 302 * @dst: The destination pointer 303 * @src: The source pointer 304 * @len: The size of the area o transfer in bytes 305 * 306 * Tries an arch optimized memcpy for prefetching reading out of a WC region, 307 * and if no such beast is available, falls back to a normal memcpy. 308 */ 309 void drm_memcpy_from_wc(struct dma_buf_map *dst, 310 const struct dma_buf_map *src, 311 unsigned long len) 312 { 313 if (WARN_ON(in_interrupt())) 314 return; 315 > 316 if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) { > 317 __drm_memcpy_from_wc(dst->is_iomem ? 318 (void __force *)dst->vaddr_iomem : 319 dst->vaddr, 320 src->is_iomem ? 321 (void const __force *)src->vaddr_iomem : 322 src->vaddr, 323 len); 324 return; 325 } 326 327 memcpy_fallback(dst, src, len); 328 } 329 EXPORT_SYMBOL(drm_memcpy_from_wc); 330 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org