oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [hare-scsi-devel:tls-netlink.v7 3/20] drivers/nvme/host/core.c:5419: undefined reference to `nvme_keyring_init'
@ 2023-03-21 22:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-21 22:29 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git tls-netlink.v7
head:   5c13b43fa2c503188a6d668b0dec6a22078329a2
commit: e9b1071a27a0122e041829e87e86852c8b80c04a [3/20] nvme-keyring: register '.nvme' keyring
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20230322/202303220626.9mNTjr39-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=e9b1071a27a0122e041829e87e86852c8b80c04a
        git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
        git fetch --no-tags hare-scsi-devel tls-netlink.v7
        git checkout e9b1071a27a0122e041829e87e86852c8b80c04a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303220626.9mNTjr39-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: vmlinux.o: in function `nvme_core_init':
>> drivers/nvme/host/core.c:5419: undefined reference to `nvme_keyring_init'
   ld: vmlinux.o: in function `nvme_core_exit':
>> drivers/nvme/host/core.c:5453: undefined reference to `nvme_keyring_exit'


vim +5419 drivers/nvme/host/core.c

  5367	
  5368	
  5369	static int __init nvme_core_init(void)
  5370	{
  5371		int result = -ENOMEM;
  5372	
  5373		_nvme_check_size();
  5374	
  5375		nvme_wq = alloc_workqueue("nvme-wq",
  5376				WQ_UNBOUND | WQ_MEM_RECLAIM | WQ_SYSFS, 0);
  5377		if (!nvme_wq)
  5378			goto out;
  5379	
  5380		nvme_reset_wq = alloc_workqueue("nvme-reset-wq",
  5381				WQ_UNBOUND | WQ_MEM_RECLAIM | WQ_SYSFS, 0);
  5382		if (!nvme_reset_wq)
  5383			goto destroy_wq;
  5384	
  5385		nvme_delete_wq = alloc_workqueue("nvme-delete-wq",
  5386				WQ_UNBOUND | WQ_MEM_RECLAIM | WQ_SYSFS, 0);
  5387		if (!nvme_delete_wq)
  5388			goto destroy_reset_wq;
  5389	
  5390		result = alloc_chrdev_region(&nvme_ctrl_base_chr_devt, 0,
  5391				NVME_MINORS, "nvme");
  5392		if (result < 0)
  5393			goto destroy_delete_wq;
  5394	
  5395		nvme_class = class_create(THIS_MODULE, "nvme");
  5396		if (IS_ERR(nvme_class)) {
  5397			result = PTR_ERR(nvme_class);
  5398			goto unregister_chrdev;
  5399		}
  5400		nvme_class->dev_uevent = nvme_class_uevent;
  5401	
  5402		nvme_subsys_class = class_create(THIS_MODULE, "nvme-subsystem");
  5403		if (IS_ERR(nvme_subsys_class)) {
  5404			result = PTR_ERR(nvme_subsys_class);
  5405			goto destroy_class;
  5406		}
  5407	
  5408		result = alloc_chrdev_region(&nvme_ns_chr_devt, 0, NVME_MINORS,
  5409					     "nvme-generic");
  5410		if (result < 0)
  5411			goto destroy_subsys_class;
  5412	
  5413		nvme_ns_chr_class = class_create(THIS_MODULE, "nvme-generic");
  5414		if (IS_ERR(nvme_ns_chr_class)) {
  5415			result = PTR_ERR(nvme_ns_chr_class);
  5416			goto unregister_generic_ns;
  5417		}
  5418	
> 5419		result = nvme_keyring_init();
  5420		if (result)
  5421			goto destroy_ns_chr;
  5422	
  5423		result = nvme_init_auth();
  5424		if (result)
  5425			goto keyring_exit;
  5426		return 0;
  5427	
  5428	keyring_exit:
  5429		nvme_keyring_exit();
  5430	destroy_ns_chr:
  5431		class_destroy(nvme_ns_chr_class);
  5432	unregister_generic_ns:
  5433		unregister_chrdev_region(nvme_ns_chr_devt, NVME_MINORS);
  5434	destroy_subsys_class:
  5435		class_destroy(nvme_subsys_class);
  5436	destroy_class:
  5437		class_destroy(nvme_class);
  5438	unregister_chrdev:
  5439		unregister_chrdev_region(nvme_ctrl_base_chr_devt, NVME_MINORS);
  5440	destroy_delete_wq:
  5441		destroy_workqueue(nvme_delete_wq);
  5442	destroy_reset_wq:
  5443		destroy_workqueue(nvme_reset_wq);
  5444	destroy_wq:
  5445		destroy_workqueue(nvme_wq);
  5446	out:
  5447		return result;
  5448	}
  5449	
  5450	static void __exit nvme_core_exit(void)
  5451	{
  5452		nvme_exit_auth();
> 5453		nvme_keyring_exit();
  5454		class_destroy(nvme_ns_chr_class);
  5455		class_destroy(nvme_subsys_class);
  5456		class_destroy(nvme_class);
  5457		unregister_chrdev_region(nvme_ns_chr_devt, NVME_MINORS);
  5458		unregister_chrdev_region(nvme_ctrl_base_chr_devt, NVME_MINORS);
  5459		destroy_workqueue(nvme_delete_wq);
  5460		destroy_workqueue(nvme_reset_wq);
  5461		destroy_workqueue(nvme_wq);
  5462		ida_destroy(&nvme_ns_chr_minor_ida);
  5463		ida_destroy(&nvme_instance_ida);
  5464	}
  5465	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-21 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 22:29 [hare-scsi-devel:tls-netlink.v7 3/20] drivers/nvme/host/core.c:5419: undefined reference to `nvme_keyring_init' kernel test robot

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