* [zen:6.7/zen-sauce 2/32] drivers/scsi/vhba/vhba.c:192:23: error: variable 'vhost' set but not used
@ 2024-03-24 21:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-24 21:13 UTC (permalink / raw)
To: steven; +Cc: oe-kbuild-all
tree: https://github.com/zen-kernel/zen-kernel 6.7/zen-sauce
head: 7cf7be28a2b0655918b7533205012566b4e8ed80
commit: 5442bc6cb8f83242249c741205276ef3b1545e37 [2/32] ZEN: Add VHBA driver
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20240325/202403250509.l7DFIv8k-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240325/202403250509.l7DFIv8k-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/202403250509.l7DFIv8k-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/scsi/vhba/vhba.c:145:6: error: no previous prototype for 'devnum_to_bus_and_id' [-Werror=missing-prototypes]
145 | void devnum_to_bus_and_id(unsigned int devnum, unsigned int *bus, unsigned int *id)
| ^~~~~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:151:14: error: no previous prototype for 'bus_and_id_to_devnum' [-Werror=missing-prototypes]
151 | unsigned int bus_and_id_to_devnum(unsigned int bus, unsigned int id)
| ^~~~~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:156:21: error: no previous prototype for 'vhba_device_alloc' [-Werror=missing-prototypes]
156 | struct vhba_device *vhba_device_alloc (void)
| ^~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:176:6: error: no previous prototype for 'vhba_device_put' [-Werror=missing-prototypes]
176 | void vhba_device_put (struct vhba_device *vdev)
| ^~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:183:21: error: no previous prototype for 'vhba_device_get' [-Werror=missing-prototypes]
183 | struct vhba_device *vhba_device_get (struct vhba_device *vdev)
| ^~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:190:5: error: no previous prototype for 'vhba_device_queue' [-Werror=missing-prototypes]
190 | int vhba_device_queue (struct vhba_device *vdev, struct scsi_cmnd *cmd)
| ^~~~~~~~~~~~~~~~~
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;
| ^~~~~
drivers/scsi/vhba/vhba.c: At top level:
drivers/scsi/vhba/vhba.c:219:5: error: no previous prototype for 'vhba_device_dequeue' [-Werror=missing-prototypes]
219 | int vhba_device_dequeue (struct vhba_device *vdev, struct scsi_cmnd *cmd)
| ^~~~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:274:6: error: no previous prototype for 'vhba_scan_devices_add' [-Werror=missing-prototypes]
274 | void vhba_scan_devices_add (struct vhba_host *vhost, int bus, int id)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:287:6: error: no previous prototype for 'vhba_scan_devices_remove' [-Werror=missing-prototypes]
287 | void vhba_scan_devices_remove (struct vhba_host *vhost, int bus, int id)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:300:6: error: no previous prototype for 'vhba_scan_devices' [-Werror=missing-prototypes]
300 | void vhba_scan_devices (struct work_struct *work)
| ^~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:348:5: error: no previous prototype for 'vhba_add_device' [-Werror=missing-prototypes]
348 | int vhba_add_device (struct vhba_device *vdev)
| ^~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:382:5: error: no previous prototype for 'vhba_remove_device' [-Werror=missing-prototypes]
382 | int vhba_remove_device (struct vhba_device *vdev)
| ^~~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:403:21: error: no previous prototype for 'vhba_lookup_device' [-Werror=missing-prototypes]
403 | struct vhba_device *vhba_lookup_device (int devnum)
| ^~~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:474:5: error: no previous prototype for 'vhba_queuecommand' [-Werror=missing-prototypes]
474 | int vhba_queuecommand (struct Scsi_Host *shost, struct scsi_cmnd *cmd)
| ^~~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:508:5: error: no previous prototype for 'vhba_abort' [-Werror=missing-prototypes]
508 | int vhba_abort (struct scsi_cmnd *cmd)
| ^~~~~~~~~~
drivers/scsi/vhba/vhba.c:551:9: error: no previous prototype for 'do_request' [-Werror=missing-prototypes]
551 | ssize_t do_request (struct vhba_device *vdev, unsigned long metatag, struct scsi_cmnd *cmd, char __user *buf, size_t buf_len)
| ^~~~~~~~~~
drivers/scsi/vhba/vhba.c:617:9: error: no previous prototype for 'do_response' [-Werror=missing-prototypes]
617 | ssize_t do_response (struct vhba_device *vdev, unsigned long metatag, struct scsi_cmnd *cmd, const char __user *buf, size_t buf_len, struct vhba_response *res)
| ^~~~~~~~~~~
drivers/scsi/vhba/vhba.c:693:22: error: no previous prototype for 'next_command' [-Werror=missing-prototypes]
693 | struct vhba_command *next_command (struct vhba_device *vdev)
| ^~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:710:22: error: no previous prototype for 'match_command' [-Werror=missing-prototypes]
710 | struct vhba_command *match_command (struct vhba_device *vdev, __u32 metatag)
| ^~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:727:22: error: no previous prototype for 'wait_command' [-Werror=missing-prototypes]
727 | struct vhba_command *wait_command (struct vhba_device *vdev, unsigned long flags)
| ^~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:754:9: error: no previous prototype for 'vhba_ctl_read' [-Werror=missing-prototypes]
754 | ssize_t vhba_ctl_read (struct file *file, char __user *buf, size_t buf_len, loff_t *offset)
| ^~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:799:9: error: no previous prototype for 'vhba_ctl_write' [-Werror=missing-prototypes]
799 | ssize_t vhba_ctl_write (struct file *file, const char __user *buf, size_t buf_len, loff_t *offset)
| ^~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:852:6: error: no previous prototype for 'vhba_ctl_ioctl' [-Werror=missing-prototypes]
852 | long vhba_ctl_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
| ^~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:893:14: error: no previous prototype for 'vhba_ctl_poll' [-Werror=missing-prototypes]
893 | unsigned int vhba_ctl_poll (struct file *file, poll_table *wait)
| ^~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:910:5: error: no previous prototype for 'vhba_ctl_open' [-Werror=missing-prototypes]
910 | int vhba_ctl_open (struct inode *inode, struct file *file)
| ^~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:942:5: error: no previous prototype for 'vhba_ctl_release' [-Werror=missing-prototypes]
942 | int vhba_ctl_release (struct inode *inode, struct file *file)
| ^~~~~~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:998:5: error: no previous prototype for 'vhba_probe' [-Werror=missing-prototypes]
998 | int vhba_probe (struct platform_device *pdev)
| ^~~~~~~~~~
drivers/scsi/vhba/vhba.c:1052:5: error: no previous prototype for 'vhba_remove' [-Werror=missing-prototypes]
1052 | int vhba_remove (struct platform_device *pdev)
| ^~~~~~~~~~~
drivers/scsi/vhba/vhba.c:1068:6: error: no previous prototype for 'vhba_release' [-Werror=missing-prototypes]
1068 | void vhba_release (struct device * dev)
| ^~~~~~~~~~~~
drivers/scsi/vhba/vhba.c:1090:12: error: no previous prototype for 'vhba_init' [-Werror=missing-prototypes]
1090 | int __init vhba_init (void)
| ^~~~~~~~~
drivers/scsi/vhba/vhba.c:1115:13: error: no previous prototype for 'vhba_exit' [-Werror=missing-prototypes]
1115 | void __exit vhba_exit(void)
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +/vhost +192 drivers/scsi/vhba/vhba.c
189
190 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] only message in thread
only message in thread, other threads:[~2024-03-24 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-24 21:13 [zen:6.7/zen-sauce 2/32] drivers/scsi/vhba/vhba.c:192:23: error: variable 'vhost' set but not used 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.