Hi Chen-Yu, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on next-20260327] [cannot apply to sunxi/sunxi/for-next linus/master v7.0-rc5] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Chen-Yu-Tsai/drm-Introduce-DRM_MODE_DUMB_KERNEL_MAP-flag/20260328-141115 base: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next patch link: https://lore.kernel.org/r/20260326100248.1171828-3-wenst%40chromium.org patch subject: [PATCH v3 2/3] drm/gem-dma: Use the dma_*_attr API variant config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260329/[email protected]/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260329/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c:297:11: error: expected ')' 297 | gem->dma_attrs); | ^ drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c:295:31: note: to match this '(' 295 | ret = dma_get_sgtable_attrs(rcdu->dev, sgt, gem->vaddr, | ^ 1 error generated. vim +297 drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c 258 259 int rcar_du_vsp_map_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, 260 struct sg_table sg_tables[3]) 261 { 262 struct rcar_du_device *rcdu = vsp->dev; 263 unsigned int i, j; 264 int ret; 265 266 for (i = 0; i < fb->format->num_planes; ++i) { 267 struct drm_gem_dma_object *gem = drm_fb_dma_get_gem_obj(fb, i); 268 struct sg_table *sgt = &sg_tables[i]; 269 270 if (gem->sgt) { 271 struct scatterlist *src; 272 struct scatterlist *dst; 273 274 /* 275 * If the GEM buffer has a scatter gather table, it has 276 * been imported from a dma-buf and has no physical 277 * address as it might not be physically contiguous. 278 * Copy the original scatter gather table to map it to 279 * the VSP. 280 */ 281 ret = sg_alloc_table(sgt, gem->sgt->orig_nents, 282 GFP_KERNEL); 283 if (ret) 284 goto fail; 285 286 src = gem->sgt->sgl; 287 dst = sgt->sgl; 288 for (j = 0; j < gem->sgt->orig_nents; ++j) { 289 sg_set_page(dst, sg_page(src), src->length, 290 src->offset); 291 src = sg_next(src); 292 dst = sg_next(dst); 293 } 294 } else { 295 ret = dma_get_sgtable_attrs(rcdu->dev, sgt, gem->vaddr, 296 gem->dma_addr, gem->base.size > 297 gem->dma_attrs); 298 if (ret) 299 goto fail; 300 } 301 302 ret = vsp1_du_map_sg(vsp->vsp, sgt); 303 if (ret) { 304 sg_free_table(sgt); 305 goto fail; 306 } 307 } 308 309 return 0; 310 311 fail: 312 while (i--) { 313 struct sg_table *sgt = &sg_tables[i]; 314 315 vsp1_du_unmap_sg(vsp->vsp, sgt); 316 sg_free_table(sgt); 317 } 318 319 return ret; 320 } 321 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
