lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111080628.n1tenD94-lkp@intel.com>
Date:   Mon, 8 Nov 2021 06:07:35 +0800
From:   kernel test robot <lkp@...el.com>
To:     Lorenzo Bianconi <lorenzo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Felix Fietkau <nbd@....name>
Subject: drivers/net/wireless/mediatek/mt76/debugfs.c:77:16: error: variable
 'queued' set but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6b75d88fa81b122cce37ebf17428a849ccd3d0f1
commit: 2d8be76c16746f1c90f4a01c188b6aad190b747e mt76: debugfs: improve queue node readability
date:   3 weeks ago
config: m68k-buildonly-randconfig-r003-20211108 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
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=2d8be76c16746f1c90f4a01c188b6aad190b747e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2d8be76c16746f1c90f4a01c188b6aad190b747e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (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: error: variable 'queued' set but not used [-Werror=unused-but-set-variable]
      77 |         int i, queued;
         |                ^~~~~~
   cc1: all warnings being treated as errors


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@...nel.org>
:::::: CC: Felix Fietkau <nbd@....name>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (33297 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ