* drivers/net/wireless/mediatek/mt76/debugfs.c:77:16: warning: variable 'queued' set but not used
@ 2026-04-07 4:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-07 4:01 UTC (permalink / raw)
To: Lorenzo Bianconi; +Cc: oe-kbuild-all, linux-kernel, Felix Fietkau
Hi Lorenzo,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1791c390149f56313c425e8add1fd15baf40afb8
commit: 2d8be76c16746f1c90f4a01c188b6aad190b747e mt76: debugfs: improve queue node readability
date: 4 years, 6 months ago
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20260406/202604060722.tkO80FXo-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260406/202604060722.tkO80FXo-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
| Fixes: 2d8be76c1674 ("mt76: debugfs: improve queue node readability")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604060722.tkO80FXo-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/wireless/mediatek/mt76/debugfs.c: In function 'mt76_rx_queues_read':
>> drivers/net/wireless/mediatek/mt76/debugfs.c:77:16: warning: variable 'queued' set but not used [-Wunused-but-set-variable]
77 | int i, queued;
| ^~~~~~
vim +/queued +77 drivers/net/wireless/mediatek/mt76/debugfs.c
17f1de56df0512 Felix Fietkau 2017-11-21 73
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 74 static int mt76_rx_queues_read(struct seq_file *s, void *data)
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 75 {
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 76 struct mt76_dev *dev = dev_get_drvdata(s->private);
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 @77 int i, queued;
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 78
2d8be76c16746f Lorenzo Bianconi 2021-09-25 79 seq_puts(s, " queue | hw-queued | head | tail |\n");
f473b42ac516be Felix Fietkau 2020-05-24 80 mt76_for_each_q_rx(dev, i) {
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 81 struct mt76_queue *q = &dev->q_rx[i];
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 82
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 83 queued = mt76_is_usb(dev) ? q->ndesc - q->queued : q->queued;
2d8be76c16746f Lorenzo Bianconi 2021-09-25 84 seq_printf(s, " %9d | %9d | %9d | %9d |\n",
2d8be76c16746f Lorenzo Bianconi 2021-09-25 85 i, q->queued, q->head, q->tail);
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 86 }
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 87
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 88 return 0;
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 89 }
6ea62c50792c6a Lorenzo Bianconi 2020-04-19 90
:::::: The code at line 77 was first introduced by commit
:::::: 6ea62c50792c6ad8b283c02d19f4304c7f3a3ccf mt76: add rx queues info to mt76 debugfs
:::::: TO: Lorenzo Bianconi <lorenzo@kernel.org>
:::::: CC: Felix Fietkau <nbd@nbd.name>
--
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:[~2026-04-07 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 4:01 drivers/net/wireless/mediatek/mt76/debugfs.c:77:16: warning: variable 'queued' set but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox