[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202211091345.lm0ueI83-lkp@intel.com>
Date: Wed, 9 Nov 2022 13:55:39 +0800
From: kernel test robot <lkp@...el.com>
To: Perry Yuan <Perry.Yuan@....com>, rafael.j.wysocki@...el.com,
ray.huang@....com, viresh.kumar@...aro.org
Cc: oe-kbuild-all@...ts.linux.dev, Deepak.Sharma@....com,
Mario.Limonciello@....com, Nathan.Fontenot@....com,
Alexander.Deucher@....com, Shimmer.Huang@....com,
Xiaojian.Du@....com, Li.Meng@....com, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, Perry Yuan <Perry.Yuan@....com>
Subject: Re: [PATCH v3 4/8] cpufreq: amd_pstate: add AMD Pstate EPP support
for the MSR based processors
Hi Perry,
I love your patch! Yet something to improve:
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on linus/master v6.1-rc4 next-20221108]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Perry-Yuan/Implement-AMD-Pstate-EPP-Driver/20221108-020418
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20221107175705.2207842-5-Perry.Yuan%40amd.com
patch subject: [PATCH v3 4/8] cpufreq: amd_pstate: add AMD Pstate EPP support for the MSR based processors
config: i386-allyesconfig
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/3d16457032d0668bcaa51c537e74f6e1aa0c9a73
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Perry-Yuan/Implement-AMD-Pstate-EPP-Driver/20221108-020418
git checkout 3d16457032d0668bcaa51c537e74f6e1aa0c9a73
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/cpufreq/amd-pstate.c: In function 'amd_pstate_get_energy_pref_index':
>> drivers/cpufreq/amd-pstate.c:112:15: error: implicit declaration of function 'amd_pstate_get_epp' [-Werror=implicit-function-declaration]
112 | epp = amd_pstate_get_epp(cpudata, 0);
| ^~~~~~~~~~~~~~~~~~
drivers/cpufreq/amd-pstate.c: In function 'store_energy_performance_preference':
>> drivers/cpufreq/amd-pstate.c:767:15: error: implicit declaration of function 'amd_pstate_set_energy_pref_index'; did you mean 'amd_pstate_get_energy_pref_index'? [-Werror=implicit-function-declaration]
767 | ret = amd_pstate_set_energy_pref_index(cpudata, ret, raw, epp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| amd_pstate_get_energy_pref_index
drivers/cpufreq/amd-pstate.c: In function 'update_boost_state':
drivers/cpufreq/amd-pstate.c:815:29: warning: variable 'cpudata' set but not used [-Wunused-but-set-variable]
815 | struct amd_cpudata *cpudata;
| ^~~~~~~
In file included from drivers/cpufreq/amd-pstate.c:39:
At top level:
include/linux/amd-pstate.h:150:21: warning: 'epp_values' defined but not used [-Wunused-variable]
150 | static unsigned int epp_values[] = {
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/amd_pstate_get_epp +112 drivers/cpufreq/amd-pstate.c
105
106 static int amd_pstate_get_energy_pref_index(struct amd_cpudata *cpudata, int *raw_epp)
107 {
108 s16 epp;
109 int index = -EINVAL;
110
111 *raw_epp = 0;
> 112 epp = amd_pstate_get_epp(cpudata, 0);
113 if (epp < 0)
114 return epp;
115
116 switch (epp) {
117 case AMD_CPPC_EPP_PERFORMANCE:
118 index = EPP_INDEX_PERFORMANCE;
119 break;
120 case AMD_CPPC_EPP_BALANCE_PERFORMANCE:
121 index = EPP_INDEX_BALANCE_PERFORMANCE;
122 break;
123 case AMD_CPPC_EPP_BALANCE_POWERSAVE:
124 index = EPP_INDEX_BALANCE_POWERSAVE;
125 break;
126 case AMD_CPPC_EPP_POWERSAVE:
127 index = EPP_INDEX_POWERSAVE;
128 break;
129 default:
130 *raw_epp = epp;
131 index = 0;
132 }
133
134 return index;
135 }
136
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (288161 bytes)
Powered by blists - more mailing lists