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: <202312231803.XzPddRa5-lkp@intel.com>
Date: Sat, 23 Dec 2023 18:30:58 +0800
From: kernel test robot <lkp@...el.com>
To: Anson Huang <anson.huang@....com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Daniel Lezcano <daniel.lezcano@...aro.org>
Subject: drivers/clocksource/timer-imx-gpt.c:279:18: warning: variable
 'tstat' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5254c0cbc92d2a08e75443bdb914f1c4839cdf5a
commit: df181e38281602bb404c5c8158a87317274dc653 clocksource/drivers/imx-gpt: Add support for ARM64
date:   5 years ago
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20231223/202312231803.XzPddRa5-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231223/202312231803.XzPddRa5-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/202312231803.XzPddRa5-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/clocksource/timer-imx-gpt.c: In function 'mxc_timer_interrupt':
>> drivers/clocksource/timer-imx-gpt.c:279:18: warning: variable 'tstat' set but not used [-Wunused-but-set-variable]
     279 |         uint32_t tstat;
         |                  ^~~~~


vim +/tstat +279 drivers/clocksource/timer-imx-gpt.c

d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  271  
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  272  /*
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  273   * IRQ handler for the timer
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  274   */
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  275  static irqreturn_t mxc_timer_interrupt(int irq, void *dev_id)
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  276  {
e510d2015d38a2 arch/arm/mach-imx/time.c Shawn Guo       2015-05-22  277  	struct clock_event_device *ced = dev_id;
24f74ad1c75e98 arch/arm/mach-imx/time.c Shawn Guo       2015-05-22  278  	struct imx_timer *imxtm = to_imx_timer(ced);
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05 @279  	uint32_t tstat;
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  280  
24f74ad1c75e98 arch/arm/mach-imx/time.c Shawn Guo       2015-05-22  281  	tstat = readl_relaxed(imxtm->base + imxtm->gpt->reg_tstat);
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  282  
db2ae4b4f6b79b arch/arm/mach-imx/time.c Shawn Guo       2015-05-22  283  	imxtm->gpt->gpt_irq_acknowledge(imxtm);
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  284  
e510d2015d38a2 arch/arm/mach-imx/time.c Shawn Guo       2015-05-22  285  	ced->event_handler(ced);
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  286  
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  287  	return IRQ_HANDLED;
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  288  }
d0f349fbce2905 arch/arm/plat-mxc/time.c Juergen Beisert 2008-07-05  289  

:::::: The code at line 279 was first introduced by commit
:::::: d0f349fbce2905607e0473d2358f97f48866e52c i.MXC family: Adding timer support

:::::: TO: Juergen Beisert <j.beisert@...gutronix.de>
:::::: CC: Robert Schwebel <r.schwebel@...gutronix.de>

-- 
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