[linux-nvme:nvme-6.11 6/10] drivers/nvme/host/apple.c:1534:9: error: 'result' undeclared

kernel test robot lkp at intel.com
Wed Jun 5 14:32:26 PDT 2024


tree:   git://git.infradead.org/nvme.git nvme-6.11
head:   fd83bacbbc06c5f3e38d8d79784ca1f7bd9cba68
commit: ff5ff45d19d8b13ceef35948204b08a51000f15f [6/10] nvme: split device add from initialization
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20240606/202406060540.s0O7hkb5-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240606/202406060540.s0O7hkb5-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406060540.s0O7hkb5-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/nvme/host/apple.c: In function 'apple_nvme_probe':
>> drivers/nvme/host/apple.c:1534:9: error: 'result' undeclared (first use in this function)
    1534 |         result = nvme_add_ctrl(&anv->ctrl);
         |         ^~~~~~
   drivers/nvme/host/apple.c:1534:9: note: each undeclared identifier is reported only once for each function it appears in
   drivers/nvme/host/apple.c:1551:27: error: 'dev' undeclared (first use in this function); did you mean 'pdev'?
    1551 |         nvme_uninit_ctrl(&dev->ctrl);
         |                           ^~~
         |                           pdev


vim +/result +1534 drivers/nvme/host/apple.c

  1524	
  1525	static int apple_nvme_probe(struct platform_device *pdev)
  1526	{
  1527		struct apple_nvme *anv;
  1528		int ret;
  1529	
  1530		anv = apple_nvme_alloc(pdev);
  1531		if (IS_ERR(anv))
  1532			return PTR_ERR(anv);
  1533	
> 1534		result = nvme_add_ctrl(&anv->ctrl);
  1535		if (result)
  1536			goto out_put_ctrl;
  1537	
  1538		anv->ctrl.admin_q = blk_mq_alloc_queue(&anv->admin_tagset, NULL, NULL);
  1539		if (IS_ERR(anv->ctrl.admin_q)) {
  1540			ret = -ENOMEM;
  1541			anv->ctrl.admin_q = NULL;
  1542			goto out_uninit_ctrl;
  1543		}
  1544	
  1545		nvme_reset_ctrl(&anv->ctrl);
  1546		async_schedule(apple_nvme_async_probe, anv);
  1547	
  1548		return 0;
  1549	
  1550	out_uninit_ctrl:
  1551		nvme_uninit_ctrl(&dev->ctrl);
  1552	out_put_ctrl:
  1553		nvme_put_ctrl(&dev->ctrl);
  1554		return ret;
  1555	}
  1556	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the Linux-nvme mailing list