[linux-nvme:nvme-6.11 2/10] drivers/nvme/host/apple.c:1547:27: error: 'dev' undeclared; did you mean 'pdev'?
kernel test robot
lkp at intel.com
Wed Jun 5 13:39:36 PDT 2024
tree: git://git.infradead.org/nvme.git nvme-6.11
head: fd83bacbbc06c5f3e38d8d79784ca1f7bd9cba68
commit: cfafcbf5792d9d7e5120c3acb78a8afad8878459 [2/10] nvme: apple: fix device reference counting
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20240606/202406060424.PAp4EYR8-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/202406060424.PAp4EYR8-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/202406060424.PAp4EYR8-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/nvme/host/apple.c: In function 'apple_nvme_probe':
>> drivers/nvme/host/apple.c:1547:27: error: 'dev' undeclared (first use in this function); did you mean 'pdev'?
1547 | nvme_uninit_ctrl(&dev->ctrl);
| ^~~
| pdev
drivers/nvme/host/apple.c:1547:27: note: each undeclared identifier is reported only once for each function it appears in
vim +1547 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 anv->ctrl.admin_q = blk_mq_alloc_queue(&anv->admin_tagset, NULL, NULL);
1535 if (IS_ERR(anv->ctrl.admin_q)) {
1536 ret = -ENOMEM;
1537 anv->ctrl.admin_q = NULL;
1538 goto out_uninit_ctrl;
1539 }
1540
1541 nvme_reset_ctrl(&anv->ctrl);
1542 async_schedule(apple_nvme_async_probe, anv);
1543
1544 return 0;
1545
1546 out_uninit_ctrl:
> 1547 nvme_uninit_ctrl(&dev->ctrl);
1548 nvme_put_ctrl(&dev->ctrl);
1549 return ret;
1550 }
1551
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Linux-nvme
mailing list