From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/clocksource/timer-mediatek.c:313:21: warning: variable 'clk_bus' set but not used
Date: Sat, 03 Oct 2026 01:08:33 +0800 [thread overview]
Message-ID: <202610030158.tLq3nt4t-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Luca-Leonardo-Scorcia/clocksource-drivers-timer-mediatek-Fix-random-crash-at-boot/20261002-091926, commit: 0c8c1bddeb603ee5834db94da982745e97c68119"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Luca Leonardo Scorcia <l.scorcia@gmail.com>
CC: 0day robot <lkp@intel.com>
tree: https://github.com/intel-lab-lkp/linux/commits/Luca-Leonardo-Scorcia/clocksource-drivers-timer-mediatek-Fix-random-crash-at-boot/20261002-091926
head: 0c8c1bddeb603ee5834db94da982745e97c68119
commit: 0c8c1bddeb603ee5834db94da982745e97c68119 clocksource/drivers/timer-mediatek: Request and enable the bus clock
date: 10 hours ago
:::::: branch date: 10 hours ago
:::::: commit date: 10 hours ago
config: nios2-randconfig-1001-20261002 (https://download.01.org/0day-ci/archive/20261003/202610030158.tLq3nt4t-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261003/202610030158.tLq3nt4t-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/r/202610030158.tLq3nt4t-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/clocksource/timer-mediatek.c: In function 'mtk_gpt_init':
>> drivers/clocksource/timer-mediatek.c:313:21: warning: variable 'clk_bus' set but not used [-Wunused-but-set-variable]
313 | struct clk *clk_bus;
| ^~~~~~~
vim +/clk_bus +313 drivers/clocksource/timer-mediatek.c
e3af677607d9dac drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 309
0c8c1bddeb603ee drivers/clocksource/timer-mediatek.c Luca Leonardo Scorcia 2026-10-02 310 static int mtk_gpt_init(struct platform_device *pdev)
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 311 {
0c8c1bddeb603ee drivers/clocksource/timer-mediatek.c Luca Leonardo Scorcia 2026-10-02 312 struct device_node *node = pdev->dev.of_node;
0c8c1bddeb603ee drivers/clocksource/timer-mediatek.c Luca Leonardo Scorcia 2026-10-02 @313 struct clk *clk_bus;
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 314 int ret;
ecb3530dd59ddd5 drivers/clocksource/mtk_timer.c Matthias Brugger 2014-07-18 315
0c8c1bddeb603ee drivers/clocksource/timer-mediatek.c Luca Leonardo Scorcia 2026-10-02 316 clk_bus = devm_clk_get_optional_enabled(&pdev->dev, "bus");
0c8c1bddeb603ee drivers/clocksource/timer-mediatek.c Luca Leonardo Scorcia 2026-10-02 317
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 318 to.clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 319 to.clkevt.set_state_shutdown = mtk_gpt_clkevt_shutdown;
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 320 to.clkevt.set_state_periodic = mtk_gpt_clkevt_set_periodic;
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 321 to.clkevt.set_state_oneshot = mtk_gpt_clkevt_shutdown;
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 322 to.clkevt.tick_resume = mtk_gpt_clkevt_shutdown;
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 323 to.clkevt.set_next_event = mtk_gpt_clkevt_next_event;
75ac5cc2ee6b499 drivers/clocksource/timer-mediatek.c Evan Benn 2021-05-12 324 to.clkevt.suspend = mtk_gpt_suspend;
75ac5cc2ee6b499 drivers/clocksource/timer-mediatek.c Evan Benn 2021-05-12 325 to.clkevt.resume = mtk_gpt_resume;
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 326 to.of_irq.handler = mtk_gpt_interrupt;
ecb3530dd59ddd5 drivers/clocksource/mtk_timer.c Matthias Brugger 2014-07-18 327
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 328 ret = timer_of_init(node, &to);
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 329 if (ret)
41d49e7939de5ec drivers/clocksource/timer-mediatek.c Fabien Parent 2019-09-19 330 return ret;
ecb3530dd59ddd5 drivers/clocksource/mtk_timer.c Matthias Brugger 2014-07-18 331
ecb3530dd59ddd5 drivers/clocksource/mtk_timer.c Matthias Brugger 2014-07-18 332 /* Configure clock source */
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 333 mtk_gpt_setup(&to, TIMER_CLK_SRC, GPT_CTRL_OP_FREERUN);
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 334 clocksource_mmio_init(timer_of_base(&to) + GPT_CNT_REG(TIMER_CLK_SRC),
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 335 node->name, timer_of_rate(&to), 300, 32,
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 336 clocksource_mmio_readl_up);
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 337 gpt_sched_reg = timer_of_base(&to) + GPT_CNT_REG(TIMER_CLK_SRC);
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 338 sched_clock_register(mtk_gpt_read_sched_clock, 32, timer_of_rate(&to));
ecb3530dd59ddd5 drivers/clocksource/mtk_timer.c Matthias Brugger 2014-07-18 339
ecb3530dd59ddd5 drivers/clocksource/mtk_timer.c Matthias Brugger 2014-07-18 340 /* Configure clock event */
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 341 mtk_gpt_setup(&to, TIMER_CLK_EVT, GPT_CTRL_OP_REPEAT);
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 342 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to),
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 343 TIMER_SYNC_TICKS, 0xffffffff);
d4a19eb3b15a4ba drivers/clocksource/mtk_timer.c Matthias Brugger 2015-02-19 344
a0858f937960d24 drivers/clocksource/timer-mediatek.c Stanley Chu 2018-07-06 345 mtk_gpt_enable_irq(&to, TIMER_CLK_EVT);
44a6e9864ca801e drivers/clocksource/timer-mediatek.c Luca Leonardo Scorcia 2026-10-02 346 enable_irq(timer_of_irq(&to));
d4a19eb3b15a4ba drivers/clocksource/mtk_timer.c Matthias Brugger 2015-02-19 347
d64e24ce5fdddd7 drivers/clocksource/mtk_timer.c Daniel Lezcano 2016-05-31 348 return 0;
ecb3530dd59ddd5 drivers/clocksource/mtk_timer.c Matthias Brugger 2014-07-18 349 }
322dca3aa6d9da7 drivers/clocksource/timer-mediatek.c Luca Leonardo Scorcia 2026-10-02 350
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-10-02 17:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 17:08 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-10-03 14:39 drivers/clocksource/timer-mediatek.c:313:21: warning: variable 'clk_bus' set but not used kernel test robot
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=202610030158.tLq3nt4t-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@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 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.