public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [linux-next:master 13941/14066] drivers/gpu/drm/xe/xe_survivability_mode.c:139:6: warning: variable 'index' set but not used
@ 2025-12-10  6:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-10  6:49 UTC (permalink / raw)
  To: Riana Tauro; +Cc: llvm, oe-kbuild-all, Rodrigo Vivi

tree:   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: sparc64-randconfig-001-20251210 (https://download.01.org/0day-ci/archive/20251210/202512101459.EEsMhcKQ-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 6ec8c4351cfc1d0627d1633b02ea787bd29c77d8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251210/202512101459.EEsMhcKQ-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512101459.EEsMhcKQ-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/xe/xe_survivability_mode.c:139:6: warning: variable 'index' set but not used [-Wunused-but-set-variable]
     139 |         int index;
         |             ^
   1 warning generated.


vim +/index +139 drivers/gpu/drm/xe/xe_survivability_mode.c

5e940312a2ac64b Riana Tauro 2025-01-28  132  
5e940312a2ac64b Riana Tauro 2025-01-28  133  static void populate_survivability_info(struct xe_device *xe)
5e940312a2ac64b Riana Tauro 2025-01-28  134  {
5e940312a2ac64b Riana Tauro 2025-01-28  135  	struct xe_survivability *survivability = &xe->survivability;
f4e9fc967afdb53 Riana Tauro 2025-12-08  136  	u32 *info = survivability->info;
5e940312a2ac64b Riana Tauro 2025-01-28  137  	struct xe_mmio *mmio;
5e940312a2ac64b Riana Tauro 2025-01-28  138  	u32 id = 0, reg_value;
5e940312a2ac64b Riana Tauro 2025-01-28 @139  	int index;
5e940312a2ac64b Riana Tauro 2025-01-28  140  
5e940312a2ac64b Riana Tauro 2025-01-28  141  	mmio = xe_root_tile_mmio(xe);
f4e9fc967afdb53 Riana Tauro 2025-12-08  142  	set_survivability_info(mmio, info, CAPABILITY_INFO);
f4e9fc967afdb53 Riana Tauro 2025-12-08  143  	reg_value = info[CAPABILITY_INFO];
5e940312a2ac64b Riana Tauro 2025-01-28  144  
5e940312a2ac64b Riana Tauro 2025-01-28  145  	if (reg_value & HISTORY_TRACKING) {
f4e9fc967afdb53 Riana Tauro 2025-12-08  146  		set_survivability_info(mmio, info, POSTCODE_TRACE);
5e940312a2ac64b Riana Tauro 2025-01-28  147  
f4e9fc967afdb53 Riana Tauro 2025-12-08  148  		if (reg_value & OVERFLOW_SUPPORT)
f4e9fc967afdb53 Riana Tauro 2025-12-08  149  			set_survivability_info(mmio, info, POSTCODE_TRACE_OVERFLOW);
5e940312a2ac64b Riana Tauro 2025-01-28  150  	}
5e940312a2ac64b Riana Tauro 2025-01-28  151  
5e940312a2ac64b Riana Tauro 2025-01-28  152  	if (reg_value & AUXINFO_SUPPORT) {
5e940312a2ac64b Riana Tauro 2025-01-28  153  		id = REG_FIELD_GET(AUXINFO_REG_OFFSET, reg_value);
5e940312a2ac64b Riana Tauro 2025-01-28  154  
f4e9fc967afdb53 Riana Tauro 2025-12-08  155  		for (index = 0; id >= AUX_INFO0 && id < MAX_SCRATCH_REG; index++) {
f4e9fc967afdb53 Riana Tauro 2025-12-08  156  			set_survivability_info(mmio, info, id);
f4e9fc967afdb53 Riana Tauro 2025-12-08  157  			id = aux_history_offset(info[id]);
5e940312a2ac64b Riana Tauro 2025-01-28  158  		}
5e940312a2ac64b Riana Tauro 2025-01-28  159  	}
5e940312a2ac64b Riana Tauro 2025-01-28  160  }
5e940312a2ac64b Riana Tauro 2025-01-28  161  

:::::: The code at line 139 was first introduced by commit
:::::: 5e940312a2ac64ba0d6239aff72135226818b238 drm/xe: Add functions and sysfs for boot survivability

:::::: TO: Riana Tauro <riana.tauro@intel.com>
:::::: CC: Rodrigo Vivi <rodrigo.vivi@intel.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-10  6:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10  6:49 [linux-next:master 13941/14066] drivers/gpu/drm/xe/xe_survivability_mode.c:139:6: warning: variable 'index' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox