* [zen:7.2/zen-sauce 2/26] drivers/scsi/vhba/vhba.c:192:23: error: variable 'vhost' set but not used
@ 2026-08-29 23:46 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-29 23:46 UTC (permalink / raw)
To: steven; +Cc: oe-kbuild-all
tree: https://github.com/zen-kernel/zen-kernel 7.2/zen-sauce
head: 299e73098bef8870b60c6ce830084457d222b0f5
commit: 429980f9a64cd983a4ad0c636518e1a4217c7303 [2/26] ZEN: Add VHBA driver
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20260830/202608300752.IHSEB0Rz-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 52774473867e49b5891ab9381accf4e5a3ce0024)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260830/202608300752.IHSEB0Rz-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/202608300752.IHSEB0Rz-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/scsi/vhba/vhba.c:192:23: error: variable 'vhost' set but not used [-Werror,-Wunused-but-set-variable]
192 | struct vhba_host *vhost;
| ^
1 error generated.
vim +/vhost +192 drivers/scsi/vhba/vhba.c
189
190 static int vhba_device_queue (struct vhba_device *vdev, struct scsi_cmnd *cmd)
191 {
> 192 struct vhba_host *vhost;
193 struct vhba_command *vcmd;
194 unsigned long flags;
195
196 vhost = platform_get_drvdata(&vhba_platform_device);
197
198 vcmd = vhba_alloc_command();
199 if (!vcmd) {
200 return SCSI_MLQUEUE_HOST_BUSY;
201 }
202
203 vcmd->cmd = cmd;
204
205 spin_lock_irqsave(&vdev->cmd_lock, flags);
206 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
207 vcmd->metatag = scsi_cmd_to_rq(vcmd->cmd)->tag;
208 #else
209 vcmd->metatag = vcmd->cmd->request->tag;
210 #endif
211 list_add_tail(&vcmd->entry, &vdev->cmd_list);
212 spin_unlock_irqrestore(&vdev->cmd_lock, flags);
213
214 wake_up_interruptible(&vdev->cmd_wq);
215
216 return 0;
217 }
218
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [zen:7.2/zen-sauce 2/26] drivers/scsi/vhba/vhba.c:192:23: error: variable 'vhost' set but not used
@ 2026-10-06 22:37 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-06 22:37 UTC (permalink / raw)
To: steven; +Cc: oe-kbuild-all
tree: https://github.com/zen-kernel/zen-kernel 7.2/zen-sauce
head: 8bcb1c874de78e8dd720a698e1b823084a00b899
commit: 429980f9a64cd983a4ad0c636518e1a4217c7303 [2/26] ZEN: Add VHBA driver
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20261007/202610070650.Fph8PoOZ-lkp@intel.com/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/20261007/202610070650.Fph8PoOZ-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/202610070650.Fph8PoOZ-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/scsi/vhba/vhba.c: In function 'vhba_device_queue':
>> drivers/scsi/vhba/vhba.c:192:23: error: variable 'vhost' set but not used [-Werror=unused-but-set-variable]
192 | struct vhba_host *vhost;
| ^~~~~
cc1: all warnings being treated as errors
vim +/vhost +192 drivers/scsi/vhba/vhba.c
189
190 static int vhba_device_queue (struct vhba_device *vdev, struct scsi_cmnd *cmd)
191 {
> 192 struct vhba_host *vhost;
193 struct vhba_command *vcmd;
194 unsigned long flags;
195
196 vhost = platform_get_drvdata(&vhba_platform_device);
197
198 vcmd = vhba_alloc_command();
199 if (!vcmd) {
200 return SCSI_MLQUEUE_HOST_BUSY;
201 }
202
203 vcmd->cmd = cmd;
204
205 spin_lock_irqsave(&vdev->cmd_lock, flags);
206 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
207 vcmd->metatag = scsi_cmd_to_rq(vcmd->cmd)->tag;
208 #else
209 vcmd->metatag = vcmd->cmd->request->tag;
210 #endif
211 list_add_tail(&vcmd->entry, &vdev->cmd_list);
212 spin_unlock_irqrestore(&vdev->cmd_lock, flags);
213
214 wake_up_interruptible(&vdev->cmd_wq);
215
216 return 0;
217 }
218
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-06 22:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 22:37 [zen:7.2/zen-sauce 2/26] drivers/scsi/vhba/vhba.c:192:23: error: variable 'vhost' set but not used kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-08-29 23:46 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.