drivers/gpu/drm/xe/xe_survivability_mode.c:215:1: sparse: sparse: symbol 'attr_capability_info' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 008d3547aae5bc86fac3eda317489169c3fda112 commit: f4e9fc967afdb53b1203f894fb4b68451a7fe202 [13941/14066] drm/xe/xe_survivability: Redesign survivability mode config: i386-randconfig-063-20251210 (https://download.01.org/0day-ci/archive/20251210/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251210/[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]/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/xe/xe_survivability_mode.c:215:1: sparse: sparse: symbol 'attr_capability_info' was not declared. Should it be static? >> drivers/gpu/drm/xe/xe_survivability_mode.c:216:1: sparse: sparse: symbol 'attr_postcode_trace' was not declared. Should it be static? >> drivers/gpu/drm/xe/xe_survivability_mode.c:217:1: sparse: sparse: symbol 'attr_postcode_trace_overflow' was not declared. Should it be static? >> drivers/gpu/drm/xe/xe_survivability_mode.c:218:1: sparse: sparse: symbol 'attr_aux_info0' was not declared. Should it be static? >> drivers/gpu/drm/xe/xe_survivability_mode.c:219:1: sparse: sparse: symbol 'attr_aux_info1' was not declared. Should it be static? >> drivers/gpu/drm/xe/xe_survivability_mode.c:220:1: sparse: sparse: symbol 'attr_aux_info2' was not declared. Should it be static? >> drivers/gpu/drm/xe/xe_survivability_mode.c:221:1: sparse: sparse: symbol 'attr_aux_info3' was not declared. Should it be static? >> drivers/gpu/drm/xe/xe_survivability_mode.c:222:1: sparse: sparse: symbol 'attr_aux_info4' was not declared. Should it be static?
vim +/attr_capability_info +215 drivers/gpu/drm/xe/xe_survivability_mode.c
208
209 #define SURVIVABILITY_ATTR_RO(name, _index) \
210 struct xe_survivability_attribute attr_##name = { \
211 .attr = __ATTR(name, 0400, survivability_info_show, NULL), \
212 .index = _index, \
213 }
214
> 215 SURVIVABILITY_ATTR_RO(capability_info, CAPABILITY_INFO); > 216 SURVIVABILITY_ATTR_RO(postcode_trace, POSTCODE_TRACE); > 217 SURVIVABILITY_ATTR_RO(postcode_trace_overflow, POSTCODE_TRACE_OVERFLOW); > 218 SURVIVABILITY_ATTR_RO(aux_info0, AUX_INFO0); > 219 SURVIVABILITY_ATTR_RO(aux_info1, AUX_INFO1); > 220 SURVIVABILITY_ATTR_RO(aux_info2, AUX_INFO2); > 221 SURVIVABILITY_ATTR_RO(aux_info3, AUX_INFO3); > 222 SURVIVABILITY_ATTR_RO(aux_info4, AUX_INFO4);
223
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki