All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 11173/13554] drivers/net/ethernet/mediatek/mtk_star_emac.c:749:29: warning: variable 'desc' set but not used
@ 2020-05-29  1:39 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-29  1:39 UTC (permalink / raw)
  To: kbuild-all

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

Hi Bartosz,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ff387fc20c697cdc887b2abf7ef494e853795a2f
commit: 8c7bd5a454ffc2b0518d1499c4af95f00291d2af [11173/13554] net: ethernet: mtk-star-emac: new driver
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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
        git checkout 8c7bd5a454ffc2b0518d1499c4af95f00291d2af
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

drivers/net/ethernet/mediatek/mtk_star_emac.c: In function 'mtk_star_ring_free_skbs':
>> drivers/net/ethernet/mediatek/mtk_star_emac.c:749:29: warning: variable 'desc' set but not used [-Wunused-but-set-variable]
749 |  struct mtk_star_ring_desc *desc;
|                             ^~~~

vim +/desc +749 drivers/net/ethernet/mediatek/mtk_star_emac.c

   742	
   743	static void
   744	mtk_star_ring_free_skbs(struct mtk_star_priv *priv, struct mtk_star_ring *ring,
   745				void (*unmap_func)(struct mtk_star_priv *,
   746						   struct mtk_star_ring_desc_data *))
   747	{
   748		struct mtk_star_ring_desc_data desc_data;
 > 749		struct mtk_star_ring_desc *desc;
   750		int i;
   751	
   752		for (i = 0; i < MTK_STAR_RING_NUM_DESCS; i++) {
   753			if (!ring->dma_addrs[i])
   754				continue;
   755	
   756			desc = &ring->descs[i];
   757	
   758			desc_data.dma_addr = ring->dma_addrs[i];
   759			desc_data.skb = ring->skbs[i];
   760	
   761			unmap_func(priv, &desc_data);
   762			dev_kfree_skb(desc_data.skb);
   763		}
   764	}
   765	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 71825 bytes --]

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

only message in thread, other threads:[~2020-05-29  1:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  1:39 [linux-next:master 11173/13554] drivers/net/ethernet/mediatek/mtk_star_emac.c:749:29: warning: variable 'desc' set but not used kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.