Hi Riana, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-xe/drm-xe-next] [also build test ERROR on drm/drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip linus/master drm-exynos/exynos-drm-next v6.18-rc7 next-20251127] [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/Riana-Tauro/drm-ras-Introduce-the-DRM-RAS-infrastructure-over-generic-netlink/20251126-220942 base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next patch link: https://lore.kernel.org/r/20251126143652.2843242-9-riana.tauro%40intel.com patch subject: [PATCH v2 3/4] drm/xe/xe_hw_error: Add support for GT hardware errors config: riscv-randconfig-r061-20251127 (https://download.01.org/0day-ci/archive/20251127/[email protected]/config) compiler: riscv64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251127/[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 arch/riscv/include/asm/bitops.h:19, from include/linux/bitops.h:67, from include/linux/thread_info.h:27, from include/asm-generic/preempt.h:5, from ./arch/riscv/include/generated/asm/preempt.h:1, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/kref.h:16, from include/linux/configfs.h:25, from include/linux/fault-inject.h:14, from drivers/gpu/drm/xe/xe_hw_error.c:6: >> include/asm-generic/bitops/__ffs.h:45:21: error: nonconstant array index in >> initializer 45 | #define __ffs(word) generic___ffs(word) | ^~~~~~~~~~~~~ drivers/gpu/drm/xe/xe_hw_error.c:31:10: note: in expansion of macro '__ffs' 31 | [__ffs(_bit)] = index | ^~~~~ drivers/gpu/drm/xe/xe_hw_error.c:34:9: note: in expansion of macro 'ERR_INDEX' 34 | ERR_INDEX(XE_GT_ERROR, DRM_XE_GENL_CORE_COMPUTE), | ^~~~~~~~~ include/asm-generic/bitops/__ffs.h:45:21: note: (near initialization for 'xe_hw_error_map') 45 | #define __ffs(word) generic___ffs(word) | ^~~~~~~~~~~~~ drivers/gpu/drm/xe/xe_hw_error.c:31:10: note: in expansion of macro '__ffs' 31 | [__ffs(_bit)] = index | ^~~~~ drivers/gpu/drm/xe/xe_hw_error.c:34:9: note: in expansion of macro 'ERR_INDEX' 34 | ERR_INDEX(XE_GT_ERROR, DRM_XE_GENL_CORE_COMPUTE), | ^~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for ARCH_HAS_ELF_CORE_EFLAGS Depends on [n]: BINFMT_ELF [=y] && ELF_CORE [=n] Selected by [y]: - RISCV [=y] vim +45 include/asm-generic/bitops/__ffs.h c1226a005ec400 Akinobu Mita 2006-03-26 43 cb4ede926134a6 Xiao Wang 2023-11-12 44 #ifndef __HAVE_ARCH___FFS cb4ede926134a6 Xiao Wang 2023-11-12 @45 #define __ffs(word) generic___ffs(word) cb4ede926134a6 Xiao Wang 2023-11-12 46 #endif cb4ede926134a6 Xiao Wang 2023-11-12 47 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
