Hi Raghava,

[auto build test WARNING on scsi/for-next]
[also build test WARNING on v4.10-rc5 next-20170123]
[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/Raghava-Aditya-Renukunta/aacraid-Patchset-for-Smart-Family-card-support/20170124-093617
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: x86_64-randconfig-x014-201704 (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=x86_64 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/scsi/aacraid/aachba.c: In function 'aac_report_phys_luns':
>> drivers/scsi/aacraid/aachba.c:1636:9: warning: 'rcode' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
     return rcode;
            ^~~~~

vim +/rcode +1636 drivers/scsi/aacraid/aachba.c

  1620                  sg64->count = cpu_to_le32(1);
  1621                  sg64->sg[0].addr[1] = cpu_to_le32(upper_32_bits(addr));
  1622                  sg64->sg[0].addr[0] = cpu_to_le32(lower_32_bits(addr));
  1623                  sg64->sg[0].count = cpu_to_le32(datasize);
  1624  
  1625                  rcode = aac_fib_send(ScsiPortCommand64, fibptr, fibsize,
  1626                                  FsaNormal, 1, 1, NULL, NULL);
  1627  
  1628                  /* analyse data */
  1629                  if (rcode >= 0 && phys_luns->resp_flag == 2) {
  1630                          /* ok and extended reporting */
  1631                          aac_update_hba_map(dev, phys_luns);
  1632                  }
  1633          }
  1634  
  1635          pci_free_consistent(dev->pdev, datasize, (void *) phys_luns, 
addr);
> 1636          return rcode;
  1637  }
  1638  
  1639  int aac_get_adapter_info(struct aac_dev* dev)
  1640  {
  1641          struct fib* fibptr;
  1642          int rcode;
  1643          u32 tmp, bus, target;
  1644          struct aac_adapter_info *info;

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

Attachment: .config.gz
Description: application/gzip

Reply via email to