Hi Perry, I love your patch! Perhaps something to improve: [auto build test WARNING on rafael-pm/linux-next] [also build test WARNING on tip/x86/core v6.0] [cannot apply to linus/master next-20221007] [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/20221009-151325 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next config: i386-allyesconfig compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/25572929f89d2f4c44fa79dcf0a30c18182c3162 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/20221009-151325 git checkout 25572929f89d2f4c44fa79dcf0a30c18182c3162 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cpufreq/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/cpufreq/amd-pstate.c: In function 'amd_pstate_get_energy_pref_index': drivers/cpufreq/amd-pstate.c:253:15: error: implicit declaration of function 'amd_pstate_get_epp' [-Werror=implicit-function-declaration] 253 | epp = amd_pstate_get_epp(cpudata, 0); | ^~~~~~~~~~~~~~~~~~ drivers/cpufreq/amd-pstate.c: In function 'store_energy_performance_preference': drivers/cpufreq/amd-pstate.c:907: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] 907 | 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:998:29: warning: variable 'cpudata' set but not used [-Wunused-but-set-variable] 998 | struct amd_cpudata *cpudata; | ^~~~~~~ At top level: >> drivers/cpufreq/amd-pstate.c:202:21: warning: 'epp_values' defined but not used [-Wunused-variable] 202 | static unsigned int epp_values[] = { | ^~~~~~~~~~ cc1: some warnings being treated as errors vim +/epp_values +202 drivers/cpufreq/amd-pstate.c 201 > 202 static unsigned int epp_values[] = { 203 [EPP_INDEX_DEFAULT] = 0, 204 [EPP_INDEX_PERFORMANCE] = AMD_CPPC_EPP_PERFORMANCE, 205 [EPP_INDEX_BALANCE_PERFORMANCE] = AMD_CPPC_EPP_BALANCE_PERFORMANCE, 206 [EPP_INDEX_BALANCE_POWERSAVE] = AMD_CPPC_EPP_BALANCE_POWERSAVE, 207 [EPP_INDEX_POWERSAVE] = AMD_CPPC_EPP_POWERSAVE, 208 }; 209 -- 0-DAY CI Kernel Test Service https://01.org/lkp