[linux-next:master 9686/10638] drivers/scsi/lpfc/lpfc_init.c:7788:35: error: 'struct lpfc_sli4_hba' has no member named 'c_stat'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   88fac11862d38306dd0d2398015744877140390d
commit: 02243836ad6f384284f10302e6b820b893960d1c [9686/10638] scsi: lpfc: Add support for the CM framework
config: powerpc-skiroot_defconfig (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=02243836ad6f384284f10302e6b820b893960d1c
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 02243836ad6f384284f10302e6b820b893960d1c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/scsi/lpfc/

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

All errors (new ones prefixed by >>):

   drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_sli4_driver_resource_setup':
>> drivers/scsi/lpfc/lpfc_init.c:7788:35: error: 'struct lpfc_sli4_hba' has no member named 'c_stat'
    7788 |         free_percpu(phba->sli4_hba.c_stat);
         |                                   ^
--
   drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_queuecommand':
>> drivers/scsi/lpfc/lpfc_scsi.c:5609:9: error: 'start' undeclared (first use in this function); did you mean 'stat'?
    5609 |         start = ktime_get_ns();
         |         ^~~~~
         |         stat
   drivers/scsi/lpfc/lpfc_scsi.c:5609:9: note: each undeclared identifier is reported only once for each function it appears in
--
   drivers/scsi/lpfc/lpfc_nvme.c: In function 'lpfc_nvme_fcp_io_submit':
>> drivers/scsi/lpfc/lpfc_nvme.c:1592:17: error: 'start' undeclared (first use in this function); did you mean 'stat'?
    1592 |                 start = ktime_get_ns();
         |                 ^~~~~
         |                 stat
   drivers/scsi/lpfc/lpfc_nvme.c:1592:17: note: each undeclared identifier is reported only once for each function it appears in


vim +7788 drivers/scsi/lpfc/lpfc_init.c

  7759	
  7760		phba->cmf_stat = alloc_percpu(struct lpfc_cgn_stat);
  7761		if (!phba->cmf_stat) {
  7762			lpfc_printf_log(phba, KERN_ERR, LOG_TRACE_EVENT,
  7763					"3331 Failed allocating per cpu cgn stats\n");
  7764			rc = -ENOMEM;
  7765			goto out_free_hba_hdwq_info;
  7766		}
  7767	
  7768		/*
  7769		 * Enable sr-iov virtual functions if supported and configured
  7770		 * through the module parameter.
  7771		 */
  7772		if (phba->cfg_sriov_nr_virtfn > 0) {
  7773			rc = lpfc_sli_probe_sriov_nr_virtfn(phba,
  7774							 phba->cfg_sriov_nr_virtfn);
  7775			if (rc) {
  7776				lpfc_printf_log(phba, KERN_WARNING, LOG_INIT,
  7777						"3020 Requested number of SR-IOV "
  7778						"virtual functions (%d) is not "
  7779						"supported\n",
  7780						phba->cfg_sriov_nr_virtfn);
  7781				phba->cfg_sriov_nr_virtfn = 0;
  7782			}
  7783		}
  7784	
  7785		return 0;
  7786	
  7787	out_free_hba_hdwq_info:
> 7788		free_percpu(phba->sli4_hba.c_stat);
  7789	#ifdef CONFIG_SCSI_LPFC_DEBUG_FS
  7790	out_free_hba_idle_stat:
  7791		kfree(phba->sli4_hba.idle_stat);
  7792	#endif
  7793	out_free_hba_eq_info:
  7794		free_percpu(phba->sli4_hba.eq_info);
  7795	out_free_hba_cpu_map:
  7796		kfree(phba->sli4_hba.cpu_map);
  7797	out_free_hba_eq_hdl:
  7798		kfree(phba->sli4_hba.hba_eq_hdl);
  7799	out_free_fcf_rr_bmask:
  7800		kfree(phba->fcf.fcf_rr_bmask);
  7801	out_remove_rpi_hdrs:
  7802		lpfc_sli4_remove_rpi_hdrs(phba);
  7803	out_free_active_sgl:
  7804		lpfc_free_active_sgl(phba);
  7805	out_destroy_cq_event_pool:
  7806		lpfc_sli4_cq_event_pool_destroy(phba);
  7807	out_free_cmd_rsp_buf:
  7808		dma_pool_destroy(phba->lpfc_cmd_rsp_buf_pool);
  7809		phba->lpfc_cmd_rsp_buf_pool = NULL;
  7810	out_free_sg_dma_buf:
  7811		dma_pool_destroy(phba->lpfc_sg_dma_buf_pool);
  7812		phba->lpfc_sg_dma_buf_pool = NULL;
  7813	out_free_bsmbx:
  7814		lpfc_destroy_bootstrap_mbox(phba);
  7815	out_free_mem:
  7816		lpfc_mem_free(phba);
  7817		return rc;
  7818	}
  7819	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux