mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Anson Huang <anson.huang@nxp.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: drivers/clocksource/timer-imx-gpt.c:279:18: warning: variable 'tstat' set but not used
Date: Sat, 23 Dec 2023 18:30:58 +0800	[thread overview]
Message-ID: <202312231803.XzPddRa5-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-12-23 10:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202312231803.XzPddRa5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anson.huang@nxp.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®