[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202308040609.zQsSXWXI-lkp@intel.com>
Date: Fri, 4 Aug 2023 07:06:09 +0800
From: kernel test robot <lkp@...el.com>
To: Nick Child <nnac123@...ux.ibm.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Thomas Falcon <tlfalcon@...ux.ibm.com>,
Dany Madden <drt@...ux.ibm.com>,
Rick Lindsley <ricklind@...ux.ibm.com>,
Haren Myneni <haren@...ux.ibm.com>
Subject: drivers/net/ethernet/ibm/ibmvnic.c:194:13: warning: variable 'rc'
set but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 999f6631866e9ea81add935b9c6ebaab0579d259
commit: 44fbc1b6e0e291df1d31f5080777ce66a72ef37a ibmvnic: Assign IRQ affinity hints to device queues
date: 9 months ago
config: powerpc-ppc64_defconfig (https://download.01.org/0day-ci/archive/20230804/202308040609.zQsSXWXI-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230804/202308040609.zQsSXWXI-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308040609.zQsSXWXI-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/ibm/ibmvnic.c: In function 'ibmvnic_clean_affinity':
>> drivers/net/ethernet/ibm/ibmvnic.c:194:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
194 | int rc, i;
| ^~
vim +/rc +194 drivers/net/ethernet/ibm/ibmvnic.c
188
189 static void ibmvnic_clean_affinity(struct ibmvnic_adapter *adapter)
190 {
191 struct ibmvnic_sub_crq_queue **rxqs;
192 struct ibmvnic_sub_crq_queue **txqs;
193 int num_rxqs, num_txqs;
> 194 int rc, i;
195
196 rc = 0;
197 rxqs = adapter->rx_scrq;
198 txqs = adapter->tx_scrq;
199 num_txqs = adapter->num_active_tx_scrqs;
200 num_rxqs = adapter->num_active_rx_scrqs;
201
202 netdev_dbg(adapter->netdev, "%s: Cleaning irq affinity hints", __func__);
203 if (txqs) {
204 for (i = 0; i < num_txqs; i++)
205 ibmvnic_clean_queue_affinity(adapter, txqs[i]);
206 }
207 if (rxqs) {
208 for (i = 0; i < num_rxqs; i++)
209 ibmvnic_clean_queue_affinity(adapter, rxqs[i]);
210 }
211 }
212
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists