drivers/fpga/versal-fpga.c:78:34: warning: 'versal_fpga_of_match' defined but not used

From: kernel test robot
Date: Wed Jan 08 2025 - 15:49:58 EST


Hi Nava,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0b7958fa05d562e514fd0abe2a4800042abf868b
commit: 01c54e628932c655e4cd2c6ed0cc688ec6e6f96b fpga: versal-fpga: Add versal fpga manager driver
date: 3 years, 6 months ago
config: sh-randconfig-r023-20230105 (https://download.01.org/0day-ci/archive/20250109/202501090440.ExDRHeJU-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250109/202501090440.ExDRHeJU-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/202501090440.ExDRHeJU-lkp@xxxxxxxxx/

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

77
> 78 static const struct of_device_id versal_fpga_of_match[] = {
79 { .compatible = "xlnx,versal-fpga", },
80 {},
81 };
82 MODULE_DEVICE_TABLE(of, versal_fpga_of_match);
83

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