Hi Chad,

[auto build test WARNING on net/master]
[also build test WARNING on v4.10-rc5 next-20170125]
[cannot apply to net-next/master]
[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/Dupuis-Chad/Add-QLogic-FastLinQ-FCoE-qedf-driver/20170126-044037
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
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=ia64 

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/qedf/qedf_main.c: In function '__qedf_probe.constprop':
>> drivers/scsi/qedf/qedf_main.c:2764:6: warning: 'rc' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
     int rc;
         ^~
   drivers/scsi/qedf/qedf_main.c: In function 'qedf_link_recovery':
>> drivers/scsi/qedf/qedf_main.c:286:24: warning: 'rdata' may be used 
>> uninitialized in this function [-Wmaybe-uninitialized]
     struct fc_rport_priv *rdata;
                           ^~~~~

vim +/rc +2764 drivers/scsi/qedf/qedf_main.c

  2748  static const struct pci_device_id qedf_pci_tbl[] = {
  2749          { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, 0x165c) },
  2750          { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, 0x8080) },
  2751          {0}
  2752  };
  2753  MODULE_DEVICE_TABLE(pci, qedf_pci_tbl);
  2754  
  2755  static struct pci_driver qedf_pci_driver = {
  2756          .name = QEDF_MODULE_NAME,
  2757          .id_table = qedf_pci_tbl,
  2758          .probe = qedf_probe,
  2759          .remove = qedf_remove,
  2760  };
  2761  
  2762  static int __qedf_probe(struct pci_dev *pdev, int mode)
  2763  {
> 2764          int rc;
  2765          struct fc_lport *lport;
  2766          struct qedf_ctx *qedf;
  2767          struct Scsi_Host *host;
  2768          bool is_vf = false;
  2769          struct qed_ll2_params params;
  2770          char host_buf[20];
  2771          struct qed_link_params link_params;
  2772          int status;

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