[android-common:android-mainline-desktop 1/1] drivers/nvme/host/sysfs.c:357:30: sparse: sparse: symbol 'nvme_ns_diag_attr_group' was not declared. Should it be static?

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://android.googlesource.com/kernel/common android-mainline-desktop
head:   32fbb9061c7aac9d3b2343d85e199cedf31e1f67
commit: 37afebc79a11bd889fe8e0a98c9ae034c3cff323 [1/1] nvme: add diag attribute group under sysfs
config: i386-randconfig-r122-20260822 (https://download.01.org/0day-ci/archive/20260822/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260822/[email protected]/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
| Fixes: 37afebc79a11 ("nvme: add diag attribute group under sysfs")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> drivers/nvme/host/sysfs.c:357:30: sparse: sparse: symbol 'nvme_ns_diag_attr_group' was not declared. Should it be static?

vim +/nvme_ns_diag_attr_group +357 drivers/nvme/host/sysfs.c

   356	
 > 357	const struct attribute_group nvme_ns_diag_attr_group = {
   358		.name		= "diag",
   359		.attrs		= nvme_ns_diag_attrs,
   360		.is_visible	= nvme_ns_diag_attrs_are_visible,
   361	};
   362	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.