linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/scsi/lpfc/lpfc_init.c:7788:35: error: 'struct lpfc_sli4_hba' has no member named 'c_stat'
@ 2021-09-09  5:13 kernel test robot
  2021-09-09 14:22 ` James Smart
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-09-09  5:13 UTC (permalink / raw)
  To: James Smart; +Cc: kbuild-all, linux-kernel, Martin K. Petersen, Justin Tee

[-- Attachment #1: Type: text/plain, Size: 4547 bytes --]

Hi James,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a3fa7a101dcff93791d1b1bdb3affcad1410c8c1
commit: 02243836ad6f384284f10302e6b820b893960d1c scsi: lpfc: Add support for the CM framework
date:   2 weeks ago
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/torvalds/linux.git/commit/?id=02243836ad6f384284f10302e6b820b893960d1c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus 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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: drivers/scsi/lpfc/lpfc_init.c:7788:35: error: 'struct lpfc_sli4_hba' has no member named 'c_stat'
  2021-09-09  5:13 drivers/scsi/lpfc/lpfc_init.c:7788:35: error: 'struct lpfc_sli4_hba' has no member named 'c_stat' kernel test robot
@ 2021-09-09 14:22 ` James Smart
  0 siblings, 0 replies; 2+ messages in thread
From: James Smart @ 2021-09-09 14:22 UTC (permalink / raw)
  To: kernel test robot
  Cc: kbuild-all, linux-kernel, Martin K. Petersen, Justin Tee

On 9/8/2021 10:13 PM, kernel test robot wrote:
> Hi James,
> 
> FYI, the error/warning still remains.
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   a3fa7a101dcff93791d1b1bdb3affcad1410c8c1
> commit: 02243836ad6f384284f10302e6b820b893960d1c scsi: lpfc: Add support for the CM framework
> date:   2 weeks ago
> 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/torvalds/linux.git/commit/?id=02243836ad6f384284f10302e6b820b893960d1c
>          git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>          git fetch --no-tags linus 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@intel.com>
> 

Fixed by:

https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=5.15/scsi-staging&id=4d568aeb6d71e5bec477c7c1884f7bd7ac0f4438

-- james


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-09 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  5:13 drivers/scsi/lpfc/lpfc_init.c:7788:35: error: 'struct lpfc_sli4_hba' has no member named 'c_stat' kernel test robot
2021-09-09 14:22 ` James Smart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).