mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/net/ethernet/ibm/ibmvnic.c:194:13: warning: variable 'rc' set but not used
@ 2023-08-03 23:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-03 23:06 UTC (permalink / raw)
  To: Nick Child
  Cc: oe-kbuild-all, linux-kernel, Thomas Falcon, Dany Madden,
	Rick Lindsley, Haren Myneni

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@intel.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-03 23:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-03 23:06 drivers/net/ethernet/ibm/ibmvnic.c:194:13: warning: variable 'rc' 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

all inboxes | Powered by JetHome®