All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/clocksource/timer-imx-gpt.c:279:18: warning: variable 'tstat' set but not used
@ 2023-12-23 10:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-23 10:30 UTC (permalink / raw)
  To: Anson Huang; +Cc: oe-kbuild-all, linux-kernel, Daniel Lezcano

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@intel.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@pengutronix.de>
:::::: CC: Robert Schwebel <r.schwebel@pengutronix.de>

-- 
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:[~2023-12-23 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-23 10:30 drivers/clocksource/timer-imx-gpt.c:279:18: warning: variable 'tstat' set but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.