lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202409171104.Z7qFxsc7-lkp@intel.com>
Date: Tue, 17 Sep 2024 11:52:24 +0800
From: kernel test robot <lkp@...el.com>
To: "Rob Herring (Arm)" <robh@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Viresh Kumar <viresh.kumar@...aro.org>
Subject: drivers/cpufreq/s3c64xx-cpufreq.c:55:22: error: variable 'old_freq'
 set but not used

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@...el.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@...aro.org>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ