Skip to contentSkip to conversation

drivers/nvme/host/sysfs.c:357:30: sparse: sparse: symbol 'nvme_ns_diag_attr_group' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Jun 10

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   49e02880ec0a8c378e811bc9d85da188d7c6204c
commit: 37afebc79a11bd889fe8e0a98c9ae034c3cff323 [10407/12670] nvme: add diag attribute group under sysfs
config: microblaze-randconfig-r131-20260610 (https://download.01.org/0day-ci/archive/20260610/[email protected]/config)
compiler: microblaze-linux-gcc (GCC) 9.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260610/[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
| 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