mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Felix Fietkau <nbd@nbd.name>
Subject: [nbd168-wireless:mt76 73/113] drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1347:21: warning: variable 'dev' set but not used
Date: Sat, 16 Oct 2021 05:24:06 +0800	[thread overview]
Message-ID: <202110160502.J4aSdm8Z-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3737 bytes --]

tree:   https://github.com/nbd168/wireless mt76
head:   39e333d657f49619c65b9f5b59aa6405f13abf35
commit: 6fab4ab4b0c10198055f44b4c6ac2c97a6b5d24e [73/113] mt76: mt7921: report tx rate directly from tx status
config: x86_64-randconfig-a004-20211015 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6069a6a5049497a32a50a49661c2f4169078bdba)
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://github.com/nbd168/wireless/commit/6fab4ab4b0c10198055f44b4c6ac2c97a6b5d24e
        git remote add nbd168-wireless https://github.com/nbd168/wireless
        git fetch --no-tags nbd168-wireless mt76
        git checkout 6fab4ab4b0c10198055f44b4c6ac2c97a6b5d24e
        # 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/mt7921/mac.c:1347:21: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
           struct mt7921_dev *dev;
                              ^
   1 warning generated.


vim +/dev +1347 drivers/net/wireless/mediatek/mt76/mt7921/mac.c

a7742ef4cd9166 Lorenzo Bianconi 2021-08-16  1344  
163f4d22c118d4 Sean Wang        2021-01-28  1345  void mt7921_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue_entry *e)
163f4d22c118d4 Sean Wang        2021-01-28  1346  {
163f4d22c118d4 Sean Wang        2021-01-28 @1347  	struct mt7921_dev *dev;
163f4d22c118d4 Sean Wang        2021-01-28  1348  
163f4d22c118d4 Sean Wang        2021-01-28  1349  	if (!e->txwi) {
163f4d22c118d4 Sean Wang        2021-01-28  1350  		dev_kfree_skb_any(e->skb);
163f4d22c118d4 Sean Wang        2021-01-28  1351  		return;
163f4d22c118d4 Sean Wang        2021-01-28  1352  	}
163f4d22c118d4 Sean Wang        2021-01-28  1353  
163f4d22c118d4 Sean Wang        2021-01-28  1354  	dev = container_of(mdev, struct mt7921_dev, mt76);
163f4d22c118d4 Sean Wang        2021-01-28  1355  
163f4d22c118d4 Sean Wang        2021-01-28  1356  	/* error path */
163f4d22c118d4 Sean Wang        2021-01-28  1357  	if (e->skb == DMA_DUMMY_DATA) {
163f4d22c118d4 Sean Wang        2021-01-28  1358  		struct mt76_txwi_cache *t;
163f4d22c118d4 Sean Wang        2021-01-28  1359  		struct mt7921_txp_common *txp;
163f4d22c118d4 Sean Wang        2021-01-28  1360  		u16 token;
163f4d22c118d4 Sean Wang        2021-01-28  1361  
163f4d22c118d4 Sean Wang        2021-01-28  1362  		txp = mt7921_txwi_to_txp(mdev, e->txwi);
163f4d22c118d4 Sean Wang        2021-01-28  1363  		token = le16_to_cpu(txp->hw.msdu_id[0]) & ~MT_MSDU_ID_VALID;
d089692bc7938a Lorenzo Bianconi 2021-04-20  1364  		t = mt76_token_put(mdev, token);
163f4d22c118d4 Sean Wang        2021-01-28  1365  		e->skb = t ? t->skb : NULL;
163f4d22c118d4 Sean Wang        2021-01-28  1366  	}
163f4d22c118d4 Sean Wang        2021-01-28  1367  
6fab4ab4b0c101 Lorenzo Bianconi 2021-09-04  1368  	if (e->skb)
6fab4ab4b0c101 Lorenzo Bianconi 2021-09-04  1369  		mt76_tx_complete_skb(mdev, e->wcid, e->skb);
163f4d22c118d4 Sean Wang        2021-01-28  1370  }
163f4d22c118d4 Sean Wang        2021-01-28  1371  

:::::: The code at line 1347 was first introduced by commit
:::::: 163f4d22c118d4eb9e275bf9ee1577c0d14b3208 mt76: mt7921: add MAC support

:::::: TO: Sean Wang <sean.wang@mediatek.com>
:::::: 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: 35190 bytes --]

                 reply	other threads:[~2021-10-15 21:25 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=202110160502.J4aSdm8Z-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 \
    /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®