drivers/gpu/drm/xe/xe_gt.h:27:undefined reference to `gt_reset_failure'

From: kernel test robot
Date: Fri Mar 21 2025 - 02:16:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a1cffe8cc8aef85f1b07c4464f0998b9785b795a
commit: 649f533b7aa2bda13d9ef0a6ef4b0a622b226d2b drm/xe: Add caller info to xe_gt_reset_async
date: 5 months ago
config: sparc64-randconfig-r053-20250319 (https://download.01.org/0day-ci/archive/20250321/202503211455.NEkMGJB4-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250321/202503211455.NEkMGJB4-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503211455.NEkMGJB4-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

sparc64-linux-ld: drivers/gpu/drm/xe/xe_gt.o: in function `xe_gt_reset_async':
>> drivers/gpu/drm/xe/xe_gt.h:27:(.text+0x24f0): undefined reference to `gt_reset_failure'
>> sparc64-linux-ld: drivers/gpu/drm/xe/xe_gt.h:27:(.text+0x24fc): undefined reference to `gt_reset_failure'
sparc64-linux-ld: drivers/gpu/drm/xe/xe_gt.o: in function `gt_reset.isra.0':
drivers/gpu/drm/xe/xe_gt.h:27:(.text+0x2e10): undefined reference to `gt_reset_failure'
sparc64-linux-ld: drivers/gpu/drm/xe/xe_gt.h:27:(.text+0x2e1c): undefined reference to `gt_reset_failure'


vim +27 drivers/gpu/drm/xe/xe_gt.h

0d97ecce16bd26 Niranjana Vishwanathapura 2023-10-09 23
8f3013e0b22206 Himal Prasad Ghimiray 2023-07-27 24 extern struct fault_attr gt_reset_failure;
8f3013e0b22206 Himal Prasad Ghimiray 2023-07-27 25 static inline bool xe_fault_inject_gt_reset(void)
8f3013e0b22206 Himal Prasad Ghimiray 2023-07-27 26 {
8f3013e0b22206 Himal Prasad Ghimiray 2023-07-27 @27 return should_fail(&gt_reset_failure, 1);
8f3013e0b22206 Himal Prasad Ghimiray 2023-07-27 28 }
8f3013e0b22206 Himal Prasad Ghimiray 2023-07-27 29

:::::: The code at line 27 was first introduced by commit
:::::: 8f3013e0b22206b27f37dcf1b96ce68df3393040 drm/xe: Introduce fault injection for gt reset

:::::: TO: Himal Prasad Ghimiray <himal.prasad.ghimiray@xxxxxxxxx>
:::::: CC: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki