[linux-next:master 8736/9709] drivers/hwmon/pmbus/xdp710.c:20:11: sparse: sparse: symbol 'micro_ohm_rsense' 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/next/linux-next.git master
head:   d04466706db5e241ee026f17b5f920e50dee26b5
commit: edf18a3ef6df1ad1be19143d0ee7d7324eb7b74e [8736/9709] hwmon: (pmbus) Add support for Infineon XDP710
config: arc-randconfig-r121-20240430 (https://download.01.org/0day-ci/archive/20240430/202404301738.J71xGyaR-lkp@xxxxxxxxx/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240430/202404301738.J71xGyaR-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/202404301738.J71xGyaR-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/pmbus/xdp710.c:20:11: sparse: sparse: symbol 'micro_ohm_rsense' was not declared. Should it be static?

vim +/micro_ohm_rsense +20 drivers/hwmon/pmbus/xdp710.c

    15	
    16	/*
    17	 * The table to map configuration register values
    18	 * to sense resistor values
    19	 */
  > 20	const int micro_ohm_rsense[] = {
    21		200, 250, 300, 330, 400, 470, 500, 600,
    22		670, 700, 750, 800, 900, 1000, 1100, 1200,
    23		1250, 1300, 1400, 1500, 1600, 1700, 1800, 1900,
    24		2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700,
    25		2800, 3000, 3100, 3200, 3300, 3400, 3500, 3600,
    26		3700, 3800, 3900, 4000, 4100, 4200, 4300, 4400,
    27		4500, 4600, 4700, 4800, 4900, 5000, 5500, 6000,
    28		6500, 7000, 7500, 8000, 8500, 9000, 9500, 10000
    29	};
    30	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux