drivers/hwmon/pmbus/ir38064.c:54:34: warning: unused variable 'ir38064_of_match'

From: kernel test robot
Date: Tue Jan 18 2022 - 06:15:28 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e3a8b6a1e70c37702054ae3c7c07ed828435d8ee
commit: e65de225ef2f7eade2888b00970eec37aeca0044 hwmon/pmbus: (ir38064) Add of_match_table
date: 3 weeks ago
config: hexagon-randconfig-r041-20220116 (https://download.01.org/0day-ci/archive/20220118/202201181742.A2Dm08zD-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c10cbb243cafc0cf42c3e922cb29183279444432)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e65de225ef2f7eade2888b00970eec37aeca0044
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e65de225ef2f7eade2888b00970eec37aeca0044
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/hwmon/pmbus/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/hwmon/pmbus/ir38064.c:54:34: warning: unused variable 'ir38064_of_match' [-Wunused-const-variable]
static const struct of_device_id ir38064_of_match[] = {
^
1 warning generated.


vim +/ir38064_of_match +54 drivers/hwmon/pmbus/ir38064.c

53
> 54 static const struct of_device_id ir38064_of_match[] = {
55 { .compatible = "infineon,ir38060" },
56 { .compatible = "infineon,ir38064" },
57 { .compatible = "infineon,ir38164" },
58 { .compatible = "infineon,ir38263" },
59 {}
60 };
61

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx