[scsi:misc 301/301] drivers/scsi/fdomain.c:442:12: sparse: sparse: context imbalance in 'fdomain_host_reset' - wrong count at exit

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

 



Hi Ondrej,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git misc
head:   9bee24d08c08a08464b97e1da5c37acbc57a67df
commit: 9bee24d08c08a08464b97e1da5c37acbc57a67df [301/301] scsi: fdomain: Resurrect driver - PCI support
reproduce:
        # apt-get install sparse
        git checkout 9bee24d08c08a08464b97e1da5c37acbc57a67df
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)

>> drivers/scsi/fdomain.c:442:12: sparse: sparse: context imbalance in 'fdomain_host_reset' - wrong count at exit

vim +/fdomain_host_reset +442 drivers/scsi/fdomain.c

92408047 Ondrej Zary 2019-04-29  441  
92408047 Ondrej Zary 2019-04-29 @442  static int fdomain_host_reset(struct scsi_cmnd *cmd)
92408047 Ondrej Zary 2019-04-29  443  {
92408047 Ondrej Zary 2019-04-29  444  	struct Scsi_Host *sh = cmd->device->host;
92408047 Ondrej Zary 2019-04-29  445  	struct fdomain *fd = shost_priv(sh);
92408047 Ondrej Zary 2019-04-29  446  	unsigned long flags;
92408047 Ondrej Zary 2019-04-29  447  
92408047 Ondrej Zary 2019-04-29  448  	spin_lock_irqsave(sh->host_lock, flags);
92408047 Ondrej Zary 2019-04-29  449  	fdomain_reset(fd->base);
92408047 Ondrej Zary 2019-04-29  450  	spin_lock_irqsave(sh->host_lock, flags);
92408047 Ondrej Zary 2019-04-29  451  	return SUCCESS;
92408047 Ondrej Zary 2019-04-29  452  }
92408047 Ondrej Zary 2019-04-29  453  

:::::: The code at line 442 was first introduced by commit
:::::: 9240804729fef84f15b018e27e398b9a79ac94d7 scsi: fdomain: Resurrect driver - core code

:::::: TO: Ondrej Zary <linux@xxxxxxx>
:::::: CC: Martin K. Petersen <martin.petersen@xxxxxxxxxx>

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



[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