Hi "Andrea,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on next-20210408]
[cannot apply to linux/master mkp-scsi/for-next scsi/for-next linus/master v5.12-rc6
v5.12-rc5 v5.12-rc4 v5.12-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Andrea-Parri-Microsoft/scsi-stor...
base: 6145d80cfc62e3ed8f16ff584d6287e6d88b82b9
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/75b45c0a08dd77d31250946c4bf114965...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Andrea-Parri-Microsoft/scsi-storvsc-Use-blk_mq_unique_tag-to-generate-requestIDs/20210409-001531
git checkout 75b45c0a08dd77d31250946c4bf114965d9f1835
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/scsi/storvsc_drv.c:691:5: warning: no previous prototype
for 'storvsc_next_request_id' [-Wmissing-prototypes]
691 | u64
storvsc_next_request_id(struct vmbus_channel *channel, u64 rqst_addr)
| ^~~~~~~~~~~~~~~~~~~~~~~
> drivers/scsi/storvsc_drv.c:715:5: warning: no previous prototype
for 'storvsc_request_addr' [-Wmissing-prototypes]
715 | u64
storvsc_request_addr(struct vmbus_channel *channel, u64 rqst_id)
| ^~~~~~~~~~~~~~~~~~~~
vim +/storvsc_next_request_id +691 drivers/scsi/storvsc_drv.c
690
691 u64 storvsc_next_request_id(struct vmbus_channel *channel, u64
rqst_addr)
692 {
693 struct storvsc_cmd_request *request =
694 (struct storvsc_cmd_request *)(unsigned long)rqst_addr;
695 struct storvsc_device *stor_device;
696 struct hv_device *device;
697
698 device = (channel->primary_channel != NULL) ?
699 channel->primary_channel->device_obj : channel->device_obj;
700 if (device == NULL)
701 return VMBUS_RQST_ERROR;
702
703 stor_device = get_out_stor_device(device);
704 if (stor_device == NULL)
705 return VMBUS_RQST_ERROR;
706
707 if (request == &stor_device->init_request)
708 return VMBUS_RQST_INIT;
709 if (request == &stor_device->reset_request)
710 return VMBUS_RQST_RESET;
711
712 return blk_mq_unique_tag(request->cmd->request);
713 }
714
715 u64 storvsc_request_addr(struct vmbus_channel *channel, u64
rqst_id)
716 {
717 struct storvsc_cmd_request *request;
718 struct storvsc_device *stor_device;
719 struct hv_device *device;
720 struct Scsi_Host *shost;
721 struct scsi_cmnd *scmnd;
722
723 device = (channel->primary_channel != NULL) ?
724 channel->primary_channel->device_obj : channel->device_obj;
725 if (device == NULL)
726 return VMBUS_RQST_ERROR;
727
728 stor_device = get_out_stor_device(device);
729 if (stor_device == NULL)
730 return VMBUS_RQST_ERROR;
731
732 if (rqst_id == VMBUS_RQST_INIT)
733 return (unsigned long)&stor_device->init_request;
734 if (rqst_id == VMBUS_RQST_RESET)
735 return (unsigned long)&stor_device->reset_request;
736
737 shost = stor_device->host;
738
739 scmnd = scsi_host_find_tag(shost, rqst_id);
740 if (scmnd == NULL)
741 return VMBUS_RQST_ERROR;
742
743 request = (struct storvsc_cmd_request *)(unsigned long)scsi_cmd_priv(scmnd);
744 return (unsigned long)request;
745 }
746
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org