Hi Matthew, kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-xe/drm-xe-next] [also build test WARNING on next-20250424] [cannot apply to drm-exynos/exynos-drm-next linus/master drm/drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip v6.15-rc3] [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/Matthew-Auld/drm-gpusvm-fix-hmm_pfn_to_map_order-usage/20250424-202128 base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next patch link: https://lore.kernel.org/r/20250424121827.862729-16-matthew.auld%40intel.com patch subject: [PATCH v3 7/7] drm/xe/pt: unify xe_pt_svm_pre_commit with userptr config: csky-randconfig-001-20250424 (https://download.01.org/0day-ci/archive/20250424/202504242339.wqvu1ovp-...@intel.com/config) compiler: csky-linux-gcc (GCC) 12.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250424/202504242339.wqvu1ovp-...@intel.com/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 <l...@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202504242339.wqvu1ovp-...@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/xe/xe_res_cursor.h:38, from drivers/gpu/drm/xe/xe_vm.c:38: >> drivers/gpu/drm/xe/xe_svm.h:182: warning: "xe_svm_assert_in_notifier" >> redefined 182 | #define xe_svm_assert_in_notifier(vm__) \ | drivers/gpu/drm/xe/xe_svm.h:170: note: this is the location of the previous definition 170 | #define xe_svm_assert_in_notifier(...) do {} while (0) | -- In file included from drivers/gpu/drm/xe/xe_tile.c:16: drivers/gpu/drm/xe/xe_svm.h: In function 'xe_svm_init': drivers/gpu/drm/xe/xe_svm.h:128:16: error: implicit declaration of function 'drm_gpusvm_init'; did you mean 'drm_mm_init'? [-Werror=implicit-function-declaration] 128 | return drm_gpusvm_init(&vm->svm.gpusvm, "Xe SVM (simple)", &vm->xe->drm, | ^~~~~~~~~~~~~~~ | drm_mm_init drivers/gpu/drm/xe/xe_svm.h:128:35: error: invalid use of undefined type 'struct xe_vm' 128 | return drm_gpusvm_init(&vm->svm.gpusvm, "Xe SVM (simple)", &vm->xe->drm, | ^~ drivers/gpu/drm/xe/xe_svm.h:128:71: error: invalid use of undefined type 'struct xe_vm' 128 | return drm_gpusvm_init(&vm->svm.gpusvm, "Xe SVM (simple)", &vm->xe->drm, | ^~ In file included from drivers/gpu/drm/xe/xe_sriov.h:9, from drivers/gpu/drm/xe/xe_device.h:13, from drivers/gpu/drm/xe/xe_tile.c:10: drivers/gpu/drm/xe/xe_svm.h: In function 'xe_svm_fini': drivers/gpu/drm/xe/xe_svm.h:135:21: error: invalid use of undefined type 'struct xe_vm' 135 | xe_assert(vm->xe, xe_vm_is_closed(vm)); | ^~ drivers/gpu/drm/xe/xe_assert.h:110:41: note: in definition of macro 'xe_assert_msg' 110 | const struct xe_device *__xe = (xe); \ | ^~ drivers/gpu/drm/xe/xe_svm.h:135:9: note: in expansion of macro 'xe_assert' 135 | xe_assert(vm->xe, xe_vm_is_closed(vm)); | ^~~~~~~~~ In file included from include/linux/bits.h:22, from include/linux/gfp_types.h:5, from include/linux/gfp.h:5, from include/drm/drm_managed.h:6, from drivers/gpu/drm/xe/xe_tile.c:8: drivers/gpu/drm/xe/xe_svm.h:135:27: error: implicit declaration of function 'xe_vm_is_closed' [-Werror=implicit-function-declaration] 135 | xe_assert(vm->xe, xe_vm_is_closed(vm)); | ^~~~~~~~~~~~~~~ include/linux/build_bug.h:30:63: note: in definition of macro 'BUILD_BUG_ON_INVALID' 30 | #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e)))) | ^ drivers/gpu/drm/xe/xe_assert.h:111:9: note: in expansion of macro '__xe_assert_msg' 111 | __xe_assert_msg(__xe, condition, \ | ^~~~~~~~~~~~~~~ drivers/gpu/drm/xe/xe_assert.h:108:34: note: in expansion of macro 'xe_assert_msg' 108 | #define xe_assert(xe, condition) xe_assert_msg((xe), condition, "") | ^~~~~~~~~~~~~ drivers/gpu/drm/xe/xe_svm.h:135:9: note: in expansion of macro 'xe_assert' 135 | xe_assert(vm->xe, xe_vm_is_closed(vm)); | ^~~~~~~~~ drivers/gpu/drm/xe/xe_svm.h:137:9: error: implicit declaration of function 'drm_gpusvm_fini'; did you mean 'drm_buddy_fini'? [-Werror=implicit-function-declaration] 137 | drm_gpusvm_fini(&vm->svm.gpusvm); | ^~~~~~~~~~~~~~~ | drm_buddy_fini drivers/gpu/drm/xe/xe_svm.h:137:28: error: invalid use of undefined type 'struct xe_vm' 137 | drm_gpusvm_fini(&vm->svm.gpusvm); | ^~ drivers/gpu/drm/xe/xe_svm.h: At top level: >> drivers/gpu/drm/xe/xe_svm.h:182: warning: "xe_svm_assert_in_notifier" >> redefined 182 | #define xe_svm_assert_in_notifier(vm__) \ | drivers/gpu/drm/xe/xe_svm.h:170: note: this is the location of the previous definition 170 | #define xe_svm_assert_in_notifier(...) do {} while (0) | cc1: some warnings being treated as errors Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for DRM_GPUSVM Depends on [n]: HAS_IOMEM [=y] && DRM [=y] && DEVICE_PRIVATE [=n] Selected by [m]: - DRM_XE [=m] && HAS_IOMEM [=y] && DRM [=y] && PCI [=y] && MMU [=y] && (m [=m] && MODULES [=y] || KUNIT [=n]=y [=y]) vim +/xe_svm_assert_in_notifier +182 drivers/gpu/drm/xe/xe_svm.h 181 > 182 #define xe_svm_assert_in_notifier(vm__) \ 183 lockdep_assert_held_write(&(vm__)->svm.gpusvm.notifier_lock) 184 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki