public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/cpufreq/s3c64xx-cpufreq.c:55:22: error: variable 'old_freq' set but not used
@ 2024-09-17  3:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-17  3:52 UTC (permalink / raw)
  To: Rob Herring (Arm); +Cc: oe-kbuild-all, linux-kernel, Viresh Kumar

Hi Rob,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a430d95c5efa2b545d26a094eb5f624e36732af0
commit: 81746019b9fbb9fbf7c522dcbeefb572ac0f9458 cpufreq: Drop CONFIG_ARM and CONFIG_ARM64 dependency on Arm drivers
date:   13 days ago
config: x86_64-sof-customedconfig-compile-test-defconfig (https://download.01.org/0day-ci/archive/20240917/202409171104.Z7qFxsc7-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/20240917/202409171104.Z7qFxsc7-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409171104.Z7qFxsc7-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/cpufreq/s3c64xx-cpufreq.c: In function 's3c64xx_cpufreq_set_target':
>> drivers/cpufreq/s3c64xx-cpufreq.c:55:22: error: variable 'old_freq' set but not used [-Werror=unused-but-set-variable]
      55 |         unsigned int old_freq, new_freq;
         |                      ^~~~~~~~
>> drivers/cpufreq/s3c64xx-cpufreq.c:54:30: error: variable 'dvfs' set but not used [-Werror=unused-but-set-variable]
      54 |         struct s3c64xx_dvfs *dvfs;
         |                              ^~~~
   cc1: all warnings being treated as errors


vim +/old_freq +55 drivers/cpufreq/s3c64xx-cpufreq.c

b3748ddd80569e arch/arm/plat-s3c64xx/cpufreq.c   Mark Brown   2009-06-15  50  
b3748ddd80569e arch/arm/plat-s3c64xx/cpufreq.c   Mark Brown   2009-06-15  51  static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
9c0ebcf78fde0f drivers/cpufreq/s3c64xx-cpufreq.c Viresh Kumar 2013-10-25  52  				      unsigned int index)
b3748ddd80569e arch/arm/plat-s3c64xx/cpufreq.c   Mark Brown   2009-06-15  53  {
b3748ddd80569e arch/arm/plat-s3c64xx/cpufreq.c   Mark Brown   2009-06-15 @54  	struct s3c64xx_dvfs *dvfs;
d4019f0a92ab80 drivers/cpufreq/s3c64xx-cpufreq.c Viresh Kumar 2013-08-14 @55  	unsigned int old_freq, new_freq;
d4019f0a92ab80 drivers/cpufreq/s3c64xx-cpufreq.c Viresh Kumar 2013-08-14  56  	int ret;
b3748ddd80569e arch/arm/plat-s3c64xx/cpufreq.c   Mark Brown   2009-06-15  57  
652ed95d5fa607 drivers/cpufreq/s3c64xx-cpufreq.c Viresh Kumar 2014-01-09  58  	old_freq = clk_get_rate(policy->clk) / 1000;
d4019f0a92ab80 drivers/cpufreq/s3c64xx-cpufreq.c Viresh Kumar 2013-08-14  59  	new_freq = s3c64xx_freq_table[index].frequency;
9c0ebcf78fde0f drivers/cpufreq/s3c64xx-cpufreq.c Viresh Kumar 2013-10-25  60  	dvfs = &s3c64xx_dvfs_table[s3c64xx_freq_table[index].driver_data];
b3748ddd80569e arch/arm/plat-s3c64xx/cpufreq.c   Mark Brown   2009-06-15  61  

:::::: The code at line 55 was first introduced by commit
:::::: d4019f0a92ab802f385cc9c8ad3ab7b5449712cb cpufreq: move freq change notifications to cpufreq core

:::::: TO: Viresh Kumar <viresh.kumar@linaro.org>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-17  3:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-17  3:52 drivers/cpufreq/s3c64xx-cpufreq.c:55:22: error: variable 'old_freq' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox