Hi Vladimir, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on linus/master v7.4-rc4 next-20261127] [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/Vladimir-Bely/drm-msm-gem-defer-shared-GPU-VM-teardown-until-last-VMA-user/20261129-041758 base: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next patch link: https://lore.kernel.org/r/20261129011759.1025516-1-vlwwwwww%40gmail.com patch subject: [PATCH v2] drm/msm/gem: defer shared GPU VM teardown until last VMA user config: arc-randconfig-1001-20261129 (https://download.01.org/0day-ci/archive/20261129/[email protected]/config) compiler: arc-linux-gcc (GCC) 13.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/[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 >>): In file included from include/linux/preempt.h:11, from include/linux/sched.h:15, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/dma-mapping.h:5, from include/linux/dma-map-ops.h:9, from drivers/gpu/drm/msm/msm_gem.c:7: drivers/gpu/drm/msm/msm_gem.c: In function 'has_vma': >> include/linux/cleanup.h:298:9: error: unknown type name 'class_gem_lock_t'; >> did you mean 'class_read_lock_t'? 298 | class_##_name##_t var __cleanup(class_##_name##_destructor) = \ | ^~~~~~ include/linux/cleanup.h:416:9: note: in expansion of macro 'CLASS' 416 | CLASS(_name, __UNIQUE_ID(guard)) | ^~~~~ drivers/gpu/drm/msm/msm_gem.c:59:9: note: in expansion of macro 'guard' 59 | guard(gem_lock)(obj); | ^~~~~ >> drivers/gpu/drm/msm/msm_gem.c:59:9: error: cleanup argument not a function >> include/linux/cleanup.h:299:17: error: implicit declaration of function >> 'class_gem_lock_constructor'; did you mean 'class_read_lock_constructor'? >> [-Werror=implicit-function-declaration] 299 | class_##_name##_constructor | ^~~~~~ include/linux/cleanup.h:416:9: note: in expansion of macro 'CLASS' 416 | CLASS(_name, __UNIQUE_ID(guard)) | ^~~~~ drivers/gpu/drm/msm/msm_gem.c:59:9: note: in expansion of macro 'guard' 59 | guard(gem_lock)(obj); | ^~~~~ include/linux/compiler.h:165:17: warning: unused variable '__UNIQUE_ID_guard_549' [-Wunused-variable] 165 | __PASTE(__UNIQUE_ID_, \ | ^~~~~~~~~~~~ include/linux/cleanup.h:298:27: note: in definition of macro 'CLASS' 298 | class_##_name##_t var __cleanup(class_##_name##_destructor) = \ | ^~~ include/linux/compiler_types.h:16:23: note: in expansion of macro '___PASTE' 16 | #define __PASTE(a, b) ___PASTE(a, b) | ^~~~~~~~ include/linux/compiler.h:165:9: note: in expansion of macro '__PASTE' 165 | __PASTE(__UNIQUE_ID_, \ | ^~~~~~~ include/linux/cleanup.h:416:22: note: in expansion of macro '__UNIQUE_ID' 416 | CLASS(_name, __UNIQUE_ID(guard)) | ^~~~~~~~~~~ drivers/gpu/drm/msm/msm_gem.c:59:9: note: in expansion of macro 'guard' 59 | guard(gem_lock)(obj); | ^~~~~ cc1: some warnings being treated as errors vim +59 drivers/gpu/drm/msm/msm_gem.c 51 52 static void put_iova_spaces(struct drm_gem_object *obj, struct drm_gpuvm *vm, 53 bool close, const char *reason); 54 55 static bool has_vma(struct drm_gem_object *obj, struct drm_gpuvm *vm) 56 { 57 struct drm_gpuvm_bo *vm_bo; 58 > 59 guard(gem_lock)(obj); 60 61 drm_gem_for_each_gpuvm_bo(vm_bo, obj) { 62 if (vm_bo->vm == vm) 63 return true; 64 } 65 66 return false; 67 } 68 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
