[android-common:android-mainline-desktop 1/1] drivers/nvme/host/sysfs.c:397:25: sparse: sparse: symbol 'dev_attr_io_errors' 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: 30ab37a128000600dcaae2b35d4a594e304dfe7e [1/1] nvme: export command error counters via 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: 30ab37a12800 ("nvme: export command error counters via 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:397:25: sparse: sparse: symbol 'dev_attr_io_errors' was not declared. Should it be static? drivers/nvme/host/sysfs.c:434:30: sparse: sparse: symbol 'nvme_ns_diag_attr_group' was not declared. Should it be static? >> drivers/nvme/host/sysfs.c:1140:25: sparse: sparse: symbol 'dev_attr_adm_errors' was not declared. Should it be static? vim +/dev_attr_io_errors +397 drivers/nvme/host/sysfs.c 396 > 397 struct device_attribute dev_attr_io_errors = 398 __ATTR(command_error_count, 0644, 399 nvme_io_errors_show, nvme_io_errors_store); 400 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki