Thread (64 messages) flat view 64 messages, 10 authors, 2016-12-11

Re: [PATCH] stmmac: reduce code duplication getting basic descriptors

From: kbuild test robot <hidden>
Date: 2016-11-28 15:26:07
Also in: lkml

Hi Pavel,

[auto build test WARNING on net-next/master]
[also build test WARNING on v4.9-rc7 next-20161128]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Pavel-Machek/stmmac-reduce-code-duplication-getting-basic-descriptors/20161128-204339
config: x86_64-randconfig-s1-11282147 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function 'dma_free_tx_skbufs':
quoted
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1137: warning: unused variable 'p'
   drivers/net/ethernet/stmicro/stmmac/stmmac_main.o: warning: objtool: stmmac_resume()+0x125: function has unreachable instruction

vim +/p +1137 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

  1121		return ret;
  1122	}
  1123	
  1124	static void dma_free_rx_skbufs(struct stmmac_priv *priv)
  1125	{
  1126		int i;
  1127	
  1128		for (i = 0; i < DMA_RX_SIZE; i++)
  1129			stmmac_free_rx_buffers(priv, i);
  1130	}
  1131	
  1132	static void dma_free_tx_skbufs(struct stmmac_priv *priv)
  1133	{
  1134		int i;
  1135	
  1136		for (i = 0; i < DMA_TX_SIZE; i++) {
1137			struct dma_desc *p = stmmac_tx_desc(priv, i);
  1138	
  1139			if (priv->tx_skbuff_dma[i].buf) {
  1140				if (priv->tx_skbuff_dma[i].map_as_page)
  1141					dma_unmap_page(priv->device,
  1142						       priv->tx_skbuff_dma[i].buf,
  1143						       priv->tx_skbuff_dma[i].len,
  1144						       DMA_TO_DEVICE);
  1145				else

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help