Re: [PATCH v2] scsi: kconfig: When possible, compile drivers with COMPILE_TEST

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

 



Hi Luis,

[auto build test WARNING on scsi/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url:    https://github.com/0day-ci/linux/commits/Luis-de-Bethencourt/scsi-kconfig-When-possible-compile-drivers-with-COMPILE_TEST/20151015-073819
config: sh-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   drivers/scsi/pas16.c: In function 'NCR5380_pread':
>> drivers/scsi/pas16.c:500:18: warning: unused variable 'i' [-Wunused-variable]
>> drivers/scsi/pas16.c:498:29: warning: unused variable 'reg' [-Wunused-variable]
>> drivers/scsi/pas16.c:497:30: warning: unused variable 'd' [-Wunused-variable]
   drivers/scsi/pas16.c: In function 'NCR5380_pwrite':
   drivers/scsi/pas16.c:537:18: warning: unused variable 'i' [-Wunused-variable]
   drivers/scsi/pas16.c:536:29: warning: unused variable 'reg' [-Wunused-variable]
>> drivers/scsi/pas16.c:535:29: warning: unused variable 's' [-Wunused-variable]

vim +/i +500 drivers/scsi/pas16.c

^1da177e Linus Torvalds 2005-04-16  491   * Returns : 0 on success, non zero on a failure such as a watchdog 
^1da177e Linus Torvalds 2005-04-16  492   * 	timeout.
^1da177e Linus Torvalds 2005-04-16  493   */
^1da177e Linus Torvalds 2005-04-16  494  
^1da177e Linus Torvalds 2005-04-16  495  static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,
^1da177e Linus Torvalds 2005-04-16  496      int len) {
^1da177e Linus Torvalds 2005-04-16 @497      register unsigned char  *d = dst;
^1da177e Linus Torvalds 2005-04-16 @498      register unsigned short reg = (unsigned short) (instance->io_port + 
^1da177e Linus Torvalds 2005-04-16  499  	P_DATA_REG_OFFSET);
^1da177e Linus Torvalds 2005-04-16 @500      register int i = len;
^1da177e Linus Torvalds 2005-04-16  501      int ii = 0;
a9c2dc43 Finn Thain     2014-11-12  502      struct NCR5380_hostdata *hostdata = shost_priv(instance);
^1da177e Linus Torvalds 2005-04-16  503  
^1da177e Linus Torvalds 2005-04-16  504      while ( !(inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY) )
^1da177e Linus Torvalds 2005-04-16  505  	 ++ii;
^1da177e Linus Torvalds 2005-04-16  506  
^1da177e Linus Torvalds 2005-04-16  507      insb( reg, d, i );
^1da177e Linus Torvalds 2005-04-16  508  
^1da177e Linus Torvalds 2005-04-16  509      if ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) {
^1da177e Linus Torvalds 2005-04-16  510  	outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET);
^1da177e Linus Torvalds 2005-04-16  511  	printk("scsi%d : watchdog timer fired in NCR5380_pread()\n",
^1da177e Linus Torvalds 2005-04-16  512  	    instance->host_no);
^1da177e Linus Torvalds 2005-04-16  513  	return -1;
^1da177e Linus Torvalds 2005-04-16  514      }
a9c2dc43 Finn Thain     2014-11-12  515      if (ii > hostdata->spin_max_r)
a9c2dc43 Finn Thain     2014-11-12  516          hostdata->spin_max_r = ii;
^1da177e Linus Torvalds 2005-04-16  517      return 0;
^1da177e Linus Torvalds 2005-04-16  518  }
^1da177e Linus Torvalds 2005-04-16  519  
^1da177e Linus Torvalds 2005-04-16  520  /*
^1da177e Linus Torvalds 2005-04-16  521   * Function : int NCR5380_pwrite (struct Scsi_Host *instance, 
^1da177e Linus Torvalds 2005-04-16  522   *	unsigned char *src, int len)
^1da177e Linus Torvalds 2005-04-16  523   *
^1da177e Linus Torvalds 2005-04-16  524   * Purpose : Fast 5380 pseudo-dma write function, transfers len bytes from
^1da177e Linus Torvalds 2005-04-16  525   *	src
^1da177e Linus Torvalds 2005-04-16  526   * 
^1da177e Linus Torvalds 2005-04-16  527   * Inputs : src = source, len = length in bytes
^1da177e Linus Torvalds 2005-04-16  528   *
^1da177e Linus Torvalds 2005-04-16  529   * Returns : 0 on success, non zero on a failure such as a watchdog 
^1da177e Linus Torvalds 2005-04-16  530   * 	timeout.
^1da177e Linus Torvalds 2005-04-16  531   */
^1da177e Linus Torvalds 2005-04-16  532  
^1da177e Linus Torvalds 2005-04-16  533  static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,
^1da177e Linus Torvalds 2005-04-16  534      int len) {
^1da177e Linus Torvalds 2005-04-16 @535      register unsigned char *s = src;
^1da177e Linus Torvalds 2005-04-16  536      register unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET);
^1da177e Linus Torvalds 2005-04-16  537      register int i = len;
^1da177e Linus Torvalds 2005-04-16  538      int ii = 0;

:::::: The code at line 500 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[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