[linux-nvme:nvme-6.8 4/16] drivers/nvme/host/sysfs.c:42: undefined reference to `nvme_ns_head_ops'

kernel test robot lkp at intel.com
Wed Jan 3 03:23:59 PST 2024


tree:   git://git.infradead.org/nvme.git nvme-6.8
head:   3b99fc0cd3a7e44fb294d9f6c13173f3dadf4136
commit: 44bc827e396809faa6a4e2dc9bd5f148373ce88b [4/16] nvme: introduce nvme_disk_is_ns_head helper
config: i386-randconfig-015-20240103 (https://download.01.org/0day-ci/archive/20240103/202401031943.0N72Tkji-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240103/202401031943.0N72Tkji-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/202401031943.0N72Tkji-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: drivers/nvme/host/sysfs.o: in function `dev_to_ns_head':
>> drivers/nvme/host/sysfs.c:42: undefined reference to `nvme_ns_head_ops'
>> ld: drivers/nvme/host/sysfs.c:42: undefined reference to `nvme_ns_head_ops'
>> ld: drivers/nvme/host/sysfs.c:42: undefined reference to `nvme_ns_head_ops'
>> ld: drivers/nvme/host/sysfs.c:42: undefined reference to `nvme_ns_head_ops'
>> ld: drivers/nvme/host/sysfs.c:42: undefined reference to `nvme_ns_head_ops'
   ld: drivers/nvme/host/sysfs.o:drivers/nvme/host/sysfs.c:42: more undefined references to `nvme_ns_head_ops' follow


vim +42 drivers/nvme/host/sysfs.c

    37	
    38	static inline struct nvme_ns_head *dev_to_ns_head(struct device *dev)
    39	{
    40		struct gendisk *disk = dev_to_disk(dev);
    41	
  > 42		if (nvme_disk_is_ns_head(disk))
    43			return disk->private_data;
    44		return nvme_get_ns_from_dev(dev)->head;
    45	}
    46	

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



More information about the Linux-nvme mailing list