drivers/cpufreq/airoha-cpufreq.c:109:34: warning: 'airoha_cpufreq_match_list' defined but not used

From: kernel test robot
Date: Sat Jan 25 2025 - 06:40:01 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b46c89c08f4146e7987fc355941a93b12e2c03ef
commit: 84cf9e541cccb8cb698518a9897942e8c78f1d83 cpufreq: airoha: Add EN7581 CPUFreq SMCCC driver
date: 8 days ago
config: sh-randconfig-r071-20250125 (https://download.01.org/0day-ci/archive/20250125/202501251941.0fXlcd1D-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250125/202501251941.0fXlcd1D-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/202501251941.0fXlcd1D-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/cpufreq/airoha-cpufreq.c:109:34: warning: 'airoha_cpufreq_match_list' defined but not used [-Wunused-const-variable=]
109 | static const struct of_device_id airoha_cpufreq_match_list[] __initconst = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/airoha_cpufreq_match_list +109 drivers/cpufreq/airoha-cpufreq.c

108
> 109 static const struct of_device_id airoha_cpufreq_match_list[] __initconst = {
110 { .compatible = "airoha,en7581" },
111 {},
112 };
113 MODULE_DEVICE_TABLE(of, airoha_cpufreq_match_list);
114

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