[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202412050615.ObPzrf34-lkp@intel.com>
Date: Thu, 5 Dec 2024 06:55:32 +0800
From: kernel test robot <lkp@...el.com>
To: Dhananjay Ugwekar <Dhananjay.Ugwekar@....com>, gautham.shenoy@....com,
mario.limonciello@....com, perry.yuan@....com, rafael@...nel.org,
viresh.kumar@...aro.org
Cc: oe-kbuild-all@...ts.linux.dev, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Dhananjay Ugwekar <Dhananjay.Ugwekar@....com>
Subject: Re: [PATCH 3/5] cpufreq/amd-pstate: Refactor
amd_pstate_epp_reenable() and amd_pstate_epp_offline()
Hi Dhananjay,
kernel test robot noticed the following build warnings:
[auto build test WARNING on rafael-pm/linux-next]
[also build test WARNING on rafael-pm/bleeding-edge linus/master v6.13-rc1 next-20241204]
[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/Dhananjay-Ugwekar/cpufreq-amd-pstate-Convert-the-amd_pstate_get-set_epp-to-static-calls/20241204-225537
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20241204144842.164178-4-Dhananjay.Ugwekar%40amd.com
patch subject: [PATCH 3/5] cpufreq/amd-pstate: Refactor amd_pstate_epp_reenable() and amd_pstate_epp_offline()
config: x86_64-buildonly-randconfig-006-20241205 (https://download.01.org/0day-ci/archive/20241205/202412050615.ObPzrf34-lkp@intel.com/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/20241205/202412050615.ObPzrf34-lkp@intel.com/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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412050615.ObPzrf34-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/cpufreq/amd-pstate.c: In function 'amd_pstate_epp_offline':
>> drivers/cpufreq/amd-pstate.c:1664:13: warning: variable 'value' set but not used [-Wunused-but-set-variable]
1664 | u64 value;
| ^~~~~
vim +/value +1664 drivers/cpufreq/amd-pstate.c
d4da12f8033a123 Perry Yuan 2023-01-31 1659
d4da12f8033a123 Perry Yuan 2023-01-31 1660 static void amd_pstate_epp_offline(struct cpufreq_policy *policy)
d4da12f8033a123 Perry Yuan 2023-01-31 1661 {
d4da12f8033a123 Perry Yuan 2023-01-31 1662 struct amd_cpudata *cpudata = policy->driver_data;
d4da12f8033a123 Perry Yuan 2023-01-31 1663 int min_perf;
d4da12f8033a123 Perry Yuan 2023-01-31 @1664 u64 value;
d4da12f8033a123 Perry Yuan 2023-01-31 1665
d4da12f8033a123 Perry Yuan 2023-01-31 1666 min_perf = READ_ONCE(cpudata->lowest_perf);
d4da12f8033a123 Perry Yuan 2023-01-31 1667 value = READ_ONCE(cpudata->cppc_req_cached);
d4da12f8033a123 Perry Yuan 2023-01-31 1668
d4da12f8033a123 Perry Yuan 2023-01-31 1669 mutex_lock(&amd_pstate_limits_lock);
d4da12f8033a123 Perry Yuan 2023-01-31 1670
33cc0b550fa3510 Dhananjay Ugwekar 2024-12-04 1671 amd_pstate_update_perf(cpudata, min_perf, 0, min_perf, false);
33cc0b550fa3510 Dhananjay Ugwekar 2024-12-04 1672 amd_pstate_set_epp(cpudata, AMD_CPPC_EPP_BALANCE_POWERSAVE);
33cc0b550fa3510 Dhananjay Ugwekar 2024-12-04 1673
d4da12f8033a123 Perry Yuan 2023-01-31 1674 mutex_unlock(&amd_pstate_limits_lock);
d4da12f8033a123 Perry Yuan 2023-01-31 1675 }
d4da12f8033a123 Perry Yuan 2023-01-31 1676
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists