drivers/hwmon/pmbus/pmbus_core.c:3507:33: sparse: sparse: symbol 'pmbus_debugfs_block_data' was not declared. Should it be static?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git testing
head:   67b0f0fb646de244e59420a373c93a9deb2c60b5
commit: 9fac9564cf8a1da1d26a555355cb92b517444b1e hwmon: (pmbus/core) Optimize debugfs block data attribute initialization
date:   25 hours ago
config: csky-randconfig-r132-20250205 (https://download.01.org/0day-ci/archive/20250205/202502050447.CA5dAMMU-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250205/202502050447.CA5dAMMU-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502050447.CA5dAMMU-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/pmbus/pmbus_core.c:3507:33: sparse: sparse: symbol 'pmbus_debugfs_block_data' was not declared. Should it be static?

vim +/pmbus_debugfs_block_data +3507 drivers/hwmon/pmbus/pmbus_core.c

  3506	
> 3507	const struct pmbus_debugfs_data pmbus_debugfs_block_data[] = {
  3508		{ .reg = PMBUS_MFR_ID, .name = "mfr_id" },
  3509		{ .reg = PMBUS_MFR_MODEL, .name = "mfr_model" },
  3510		{ .reg = PMBUS_MFR_REVISION, .name = "mfr_revision" },
  3511		{ .reg = PMBUS_MFR_LOCATION, .name = "mfr_location" },
  3512		{ .reg = PMBUS_MFR_DATE, .name = "mfr_date" },
  3513		{ .reg = PMBUS_MFR_SERIAL, .name = "mfr_serial" },
  3514	};
  3515	

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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux