include/linux/amd-pstate.h:87:27: warning: 'amd_pstate_mode_string' defined but not used
From: kernel test robot
Date: Sat Jan 06 2024 - 00:43:38 EST
Hi Wyes,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a4ab2706bb1280693e7dff1c5c42a8cb9d70c177
commit: 36c5014e5460963ad7766487c0e22a7ff28681fc cpufreq: amd-pstate: optimize driver working mode selection in amd_pstate_param()
date: 11 months ago
config: i386-randconfig-053-20240106 (https://download.01.org/0day-ci/archive/20240106/202401061345.DE6P9g5i-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240106/202401061345.DE6P9g5i-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/202401061345.DE6P9g5i-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