Hi Danilo, kernel test robot noticed the following build errors: [auto build test ERROR on 2222dcb0775d36de28992f56455ab3967b30d380] url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers-v4/20230620-084448 base: 2222dcb0775d36de28992f56455ab3967b30d380 patch link: https://lore.kernel.org/r/20230620004217.4700-10-dakr%40redhat.com patch subject: [PATCH drm-next v5 09/14] drm/nouveau: fence: separate fence alloc and emit config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230621/202306211017.r9G5NqSc-lkp@xxxxxxxxx/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230621/202306211017.r9G5NqSc-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202306211017.r9G5NqSc-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): drivers/gpu/drm/nouveau/nouveau_dmem.c: In function 'nouveau_dmem_migrate_chunk': >> drivers/gpu/drm/nouveau/nouveau_dmem.c:681:43: error: 'chunk' undeclared (first use in this function) 681 | nouveau_fence_emit(fence, chunk->drm->dmem->migrate.chan); | ^~~~~ drivers/gpu/drm/nouveau/nouveau_dmem.c:681:43: note: each undeclared identifier is reported only once for each function it appears in vim +/chunk +681 drivers/gpu/drm/nouveau/nouveau_dmem.c 664 665 static void nouveau_dmem_migrate_chunk(struct nouveau_drm *drm, 666 struct nouveau_svmm *svmm, struct migrate_vma *args, 667 dma_addr_t *dma_addrs, u64 *pfns) 668 { 669 struct nouveau_fence *fence; 670 unsigned long addr = args->start, nr_dma = 0, i; 671 672 for (i = 0; addr < args->end; i++) { 673 args->dst[i] = nouveau_dmem_migrate_copy_one(drm, svmm, 674 args->src[i], dma_addrs + nr_dma, pfns + i); 675 if (!dma_mapping_error(drm->dev->dev, dma_addrs[nr_dma])) 676 nr_dma++; 677 addr += PAGE_SIZE; 678 } 679 680 if (!nouveau_fence_new(&fence)) > 681 nouveau_fence_emit(fence, chunk->drm->dmem->migrate.chan); 682 migrate_vma_pages(args); 683 nouveau_dmem_fence_done(&fence); 684 nouveau_pfns_map(svmm, args->vma->vm_mm, args->start, pfns, i); 685 686 while (nr_dma--) { 687 dma_unmap_page(drm->dev->dev, dma_addrs[nr_dma], PAGE_SIZE, 688 DMA_BIDIRECTIONAL); 689 } 690 migrate_vma_finalize(args); 691 } 692 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki