include/linux/amd-pstate.h:87:27: warning: 'amd_pstate_mode_string' defined but not used
From: kernel test robot
Date: Tue Oct 17 2023 - 23:14:45 EST
Hi Wyes,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06dc10eae55b5ceabfef287a7e5f16ceea204aa0
commit: 36c5014e5460963ad7766487c0e22a7ff28681fc cpufreq: amd-pstate: optimize driver working mode selection in amd_pstate_param()
date: 9 months ago
config: x86_64-randconfig-002-20231010 (https://download.01.org/0day-ci/archive/20231018/202310181119.Ws0iO2pZ-lkp@xxxxxxxxx/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/20231018/202310181119.Ws0iO2pZ-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/202310181119.Ws0iO2pZ-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
In file included from drivers/cpufreq/amd-pstate-ut.c:29:
>> include/linux/amd-pstate.h:87:27: warning: 'amd_pstate_mode_string' defined but not used [-Wunused-const-variable=]
87 | static const char * const amd_pstate_mode_string[] = {
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/amd_pstate_mode_string +87 include/linux/amd-pstate.h
86
> 87 static const char * const amd_pstate_mode_string[] = {
88 [AMD_PSTATE_DISABLE] = "disable",
89 [AMD_PSTATE_PASSIVE] = "passive",
90 [AMD_PSTATE_ACTIVE] = "active",
91 NULL,
92 };
93
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki