[linux-next:master 4304/4582] drivers/hwmon/pmbus/mp2975.c:1069:34: warning: unused variable 'mp2975_of_match'

[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:   d35b2284e966c0bef3e2182a5c5ea02177dd32e4
commit: d62e74bcb173cab374d582014dc1183a09efd25d [4304/4582] hwmon: (pmbus/mp2975) Use i2c_get_match_data() [take 2]
config: x86_64-buildonly-randconfig-003-20240607 (https://download.01.org/0day-ci/archive/20240607/202406071624.o81nLJmG-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240607/202406071624.o81nLJmG-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/202406071624.o81nLJmG-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/hwmon/pmbus/mp2975.c:1069:34: warning: unused variable 'mp2975_of_match' [-Wunused-const-variable]
    1069 | static const struct of_device_id mp2975_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~
   1 warning generated.


vim +/mp2975_of_match +1069 drivers/hwmon/pmbus/mp2975.c

  1068	
> 1069	static const struct of_device_id mp2975_of_match[] = {
  1070		{.compatible = "mps,mp2971", .data = (void *)mp2971},
  1071		{.compatible = "mps,mp2973", .data = (void *)mp2973},
  1072		{.compatible = "mps,mp2975", .data = (void *)mp2975},
  1073		{}
  1074	};
  1075	MODULE_DEVICE_TABLE(of, mp2975_of_match);
  1076	

-- 
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