Re: [PATCH 27/35] scsi: Use Scsi_Host and channel number as argument for eh_bus_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: i386-randconfig-x070-06180431 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/seqlock.h:35:0,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from drivers/scsi/qlogicfas408.c:42:
   drivers/scsi/qlogicfas408.c: In function 'qlogicfas408_host_reset':
>> drivers/scsi/qlogicfas408.c:512:20: error: 'cmd' undeclared (first use in this function)
     spin_lock_irqsave(cmd->device->host->host_lock, flags);
                       ^
   include/linux/spinlock.h:205:34: note: in definition of macro 'raw_spin_lock_irqsave'
      flags = _raw_spin_lock_irqsave(lock); \
                                     ^~~~
>> drivers/scsi/qlogicfas408.c:512:2: note: in expansion of macro 'spin_lock_irqsave'
     spin_lock_irqsave(cmd->device->host->host_lock, flags);
     ^~~~~~~~~~~~~~~~~
   drivers/scsi/qlogicfas408.c:512:20: note: each undeclared identifier is reported only once for each function it appears in
     spin_lock_irqsave(cmd->device->host->host_lock, flags);
                       ^
   include/linux/spinlock.h:205:34: note: in definition of macro 'raw_spin_lock_irqsave'
      flags = _raw_spin_lock_irqsave(lock); \
                                     ^~~~
>> drivers/scsi/qlogicfas408.c:512:2: note: in expansion of macro 'spin_lock_irqsave'
     spin_lock_irqsave(cmd->device->host->host_lock, flags);
     ^~~~~~~~~~~~~~~~~

vim +/cmd +512 drivers/scsi/qlogicfas408.c

^1da177e Linus Torvalds  2005-04-16  506  {
2a03ede9 Hannes Reinecke 2017-06-23  507  	struct qlogicfas408_priv *priv = get_priv_by_host(shost);
68b3aa7c Jeff Garzik     2005-05-28  508  	unsigned long flags;
68b3aa7c Jeff Garzik     2005-05-28  509  
^1da177e Linus Torvalds  2005-04-16  510  	priv->qabort = 2;
68b3aa7c Jeff Garzik     2005-05-28  511  
68b3aa7c Jeff Garzik     2005-05-28 @512  	spin_lock_irqsave(cmd->device->host->host_lock, flags);
^1da177e Linus Torvalds  2005-04-16  513  	ql_zap(priv);
68b3aa7c Jeff Garzik     2005-05-28  514  	spin_unlock_irqrestore(cmd->device->host->host_lock, flags);
68b3aa7c Jeff Garzik     2005-05-28  515  

:::::: The code at line 512 was first introduced by commit
:::::: 68b3aa7c9805aee9005a8ca53c5e99177961fbb9 [SCSI] allow sleeping in ->eh_bus_reset_handler()

:::::: TO: Jeff Garzik <jgarzik@xxxxxxxxx>
:::::: CC: Jeff Garzik <jgarzik@xxxxxxxxx>

---
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