From: kernel test robot <lkp@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: [linux-next:master 13941/14066] drivers/gpu/drm/xe/xe_survivability_mode.c:139:6: warning: variable 'index' set but not used
Date: Wed, 10 Dec 2025 14:49:28 +0800 [thread overview]
Message-ID: <202512101459.EEsMhcKQ-lkp@intel.com> (raw)
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
reply other threads:[~2025-12-10 6:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202512101459.EEsMhcKQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=riana.tauro@intel.com \
--cc=rodrigo.vivi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox