Hi Marek, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on drm-exynos/exynos-drm-next] [also build test ERROR on next-20200428] [cannot apply to drm-intel/for-linux-next tegra-drm/drm/tegra/for-next linus/master v5.7-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Marek-Szyprowski/DRM-fix-struct-sg_table-nents-vs-orig_nents-misuse/20200429-040352 base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next config: x86_64-defconfig (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All errors (new ones prefixed by >>): drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'i915_gem_gtt_prepare_pages': >> drivers/gpu/drm/i915/i915_gem_gtt.c:35:7: error: 'page' undeclared (first use in this function) if (page->nents) ^~~~ drivers/gpu/drm/i915/i915_gem_gtt.c:35:7: note: each undeclared identifier is reported only once for each function it appears in vim +/page +35 drivers/gpu/drm/i915/i915_gem_gtt.c 26 27 int i915_gem_gtt_prepare_pages(struct drm_i915_gem_object *obj, 28 struct sg_table *pages) 29 { 30 do { 31 pages->nents = dma_map_sg_attrs(&obj->base.dev->pdev->dev, 32 pages->sgl, pages->orig_nents, 33 PCI_DMA_BIDIRECTIONAL, 34 DMA_ATTR_NO_WARN); > 35 if (page->nents) 36 return 0; 37 38 /* 39 * If the DMA remap fails, one cause can be that we have 40 * too many objects pinned in a small remapping table, 41 * such as swiotlb. Incrementally purge all other objects and 42 * try again - if there are no more pages to remove from 43 * the DMA remapper, i915_gem_shrink will return 0. 44 */ 45 GEM_BUG_ON(obj->mm.pages == pages); 46 } while (i915_gem_shrink(to_i915(obj->base.dev), 47 obj->base.size >> PAGE_SHIFT, NULL, 48 I915_SHRINK_BOUND | 49 I915_SHRINK_UNBOUND)); 50 51 return -ENOSPC; 52 } 53 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org