Re: [PATCH 33/35] scsi: Use scsi_target as argument for eh_target_reset_handler()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hannes,

[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on next-20170623]
[cannot apply to v4.12-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Hannes-Reinecke/SCSI-EH-argument-reshuffling/20170624-071433
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_eh_target_reset_handler':
>> drivers/scsi/ibmvscsi/ibmvfc.c:2501:41: error: 'sdev' undeclared (first use in this function)
     struct ibmvfc_host *vhost = shost_priv(sdev->host);
                                            ^~~~
   drivers/scsi/ibmvscsi/ibmvfc.c:2501:41: note: each undeclared identifier is reported only once for each function it appears in
   drivers/scsi/ibmvscsi/ibmvfc.c:2500:20: warning: unused variable 'shost' [-Wunused-variable]
     struct Scsi_Host *shost = rport_to_shost(rport);
                       ^~~~~
   drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_eh_host_reset_handler':
   drivers/scsi/ibmvscsi/ibmvfc.c:2533:10: warning: unused variable 'block_rc' [-Wunused-variable]
     int rc, block_rc;
             ^~~~~~~~

vim +/sdev +2501 drivers/scsi/ibmvscsi/ibmvfc.c

  2495	 *	SUCCESS / FAST_IO_FAIL / FAILED
  2496	 **/
  2497	static int ibmvfc_eh_target_reset_handler(struct scsi_target *starget)
  2498	{
  2499		struct fc_rport *rport = starget_to_rport(starget);
  2500		struct Scsi_Host *shost = rport_to_shost(rport);
> 2501		struct ibmvfc_host *vhost = shost_priv(sdev->host);
  2502		int block_rc;
  2503		int reset_rc = 0;
  2504		int rc = FAILED;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux