2023-11-06 08:34:34

by Yujie Liu

[permalink] [raw]
Subject: drivers/fpga/versal-fpga.c:78:34: warning: 'versal_fpga_of_match' defined but not used

Hi Nava,

kernel test robot noticed a build warning:

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1c41041124bd14dd6610da256a3da4e5b74ce6b1
commit: 01c54e628932c655e4cd2c6ed0cc688ec6e6f96b fpga: versal-fpga: Add versal fpga manager driver
date: 2 years, 4 months ago
config: i386-buildonly-randconfig-005-20231101 (https://download.01.org/0day-ci/archive/20231105/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231105/[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
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/fpga/versal-fpga.c:78:34: warning: 'versal_fpga_of_match' defined but not used [-Wunused-const-variable=]
78 | static const struct of_device_id versal_fpga_of_match[] = {
| ^~~~~~~~~~~~~~~~~~~~


vim +/versal_fpga_of_match +78 drivers/fpga/versal-fpga.c

01c54e628932c6 Nava kishore Manne 2021-06-26 77
01c54e628932c6 Nava kishore Manne 2021-06-26 @78 static const struct of_device_id versal_fpga_of_match[] = {
01c54e628932c6 Nava kishore Manne 2021-06-26 79 { .compatible = "xlnx,versal-fpga", },
01c54e628932c6 Nava kishore Manne 2021-06-26 80 {},
01c54e628932c6 Nava kishore Manne 2021-06-26 81 };
01c54e628932c6 Nava kishore Manne 2021-06-26 82 MODULE_DEVICE_TABLE(of, versal_fpga_of_match);
01c54e628932c6 Nava kishore Manne 2021-06-26 83

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