From: kernel test robot <lkp@intel.com>
To: Sean Wang <sean.wang@mediatek.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Felix Fietkau <nbd@nbd.name>,
Lorenzo Bianconi <lorenzo@kernel.org>
Subject: drivers/net/wireless/mediatek/mt76/debugfs.c:77:9: warning: variable 'queued' set but not used
Date: Fri, 19 Nov 2021 04:43:36 +0800 [thread overview]
Message-ID: <202111190424.JzkIDjVb-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3176 bytes --]
Hi Sean,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 42eb8fdac2fc5d62392dcfcf0253753e821a97b0
commit: 48fab5bbef4092d925ab3214773ad12e68807223 mt76: mt7921: introduce mt7921s support
date: 4 weeks ago
config: x86_64-randconfig-a006-20211118 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c46becf500df2a7fb4b4fce16178a036c344315a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=48fab5bbef4092d925ab3214773ad12e68807223
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 48fab5bbef4092d925ab3214773ad12e68807223
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/mediatek/mt76/debugfs.c:77:9: warning: variable 'queued' set but not used [-Wunused-but-set-variable]
int i, queued;
^
1 warning generated.
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, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34736 bytes --]
reply other threads:[~2021-11-18 20:44 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=202111190424.JzkIDjVb-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=lorenzo@kernel.org \
--cc=nbd@nbd.name \
--cc=sean.wang@mediatek.com \
/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®