netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Joao Pinto <Joao.Pinto@synopsys.com>
Cc: kbuild-all@01.org, davem@davemloft.net, peppe.cavallaro@st.com,
	alexandre.torgue@st.com, netdev@vger.kernel.org,
	Joao Pinto <Joao.Pinto@synopsys.com>
Subject: Re: [PATCH 2/3] net: stmicro: prepare dwmac4 dma for mtl
Date: Wed, 15 Feb 2017 06:37:27 +0800	[thread overview]
Message-ID: <201702150646.E5GR2OD1%fengguang.wu@intel.com> (raw)
In-Reply-To: <63f614c63a054b37cdf8cd3b4b7d285d8d33a139.1487089769.git.jpinto@synopsys.com>

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

Hi Joao,

[auto build test WARNING on net-next/master]
[also build test WARNING on next-20170214]
[cannot apply to v4.10-rc8]
[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/Joao-Pinto/add-support-for-multiple-queues-channels-in-stmmac/20170215-024621
config: i386-randconfig-x002-201707 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_hw_setup':
>> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1932:3: warning: 'dummy_dma_rx_phy' may be used uninitialized in this function [-Wmaybe-uninitialized]
      priv->hw->dma->init(priv->ioaddr, priv->plat->dma_cfg,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            dummy_dma_tx_phy, dummy_dma_rx_phy, atds);
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1909:6: note: 'dummy_dma_rx_phy' was declared here
     u32 dummy_dma_rx_phy, dummy_dma_tx_phy = 0;
         ^~~~~~~~~~~~~~~~

vim +/dummy_dma_rx_phy +1932 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

a332e2fa Niklas Cassel      2016-12-07  1916  	if (!priv->plat->dma_cfg || !priv->plat->dma_cfg->pbl) {
a332e2fa Niklas Cassel      2016-12-07  1917  		dev_err(priv->device, "Invalid DMA configuration\n");
89ab75bf Niklas Cassel      2016-12-07  1918  		return -EINVAL;
0f1f88a8 Giuseppe CAVALLARO 2012-04-18  1919  	}
0f1f88a8 Giuseppe CAVALLARO 2012-04-18  1920  
c24602ef Giuseppe CAVALLARO 2013-03-26  1921  	if (priv->extend_desc && (priv->mode == STMMAC_RING_MODE))
c24602ef Giuseppe CAVALLARO 2013-03-26  1922  		atds = 1;
c24602ef Giuseppe CAVALLARO 2013-03-26  1923  
495db273 Giuseppe Cavallaro 2016-02-29  1924  	ret = priv->hw->dma->reset(priv->ioaddr);
495db273 Giuseppe Cavallaro 2016-02-29  1925  	if (ret) {
495db273 Giuseppe Cavallaro 2016-02-29  1926  		dev_err(priv->device, "Failed to reset the dma\n");
495db273 Giuseppe Cavallaro 2016-02-29  1927  		return ret;
495db273 Giuseppe Cavallaro 2016-02-29  1928  	}
495db273 Giuseppe Cavallaro 2016-02-29  1929  
5047d338 Joao Pinto         2017-02-14  1930  	if (priv->synopsys_id >= DWMAC_CORE_4_00) {
5047d338 Joao Pinto         2017-02-14  1931  		/* DMA Configuration */
50ca903a Niklas Cassel      2016-12-07 @1932  		priv->hw->dma->init(priv->ioaddr, priv->plat->dma_cfg,
5047d338 Joao Pinto         2017-02-14  1933  				    dummy_dma_tx_phy, dummy_dma_rx_phy, atds);
5047d338 Joao Pinto         2017-02-14  1934  
5047d338 Joao Pinto         2017-02-14  1935  		/* DMA RX Channel Configuration */
5047d338 Joao Pinto         2017-02-14  1936  		for (chan = 0; chan < rx_channels_count; chan++) {
5047d338 Joao Pinto         2017-02-14  1937  			priv->hw->dma->init_rx_chan(priv->ioaddr,
5047d338 Joao Pinto         2017-02-14  1938  						    priv->plat->dma_cfg,
5047d338 Joao Pinto         2017-02-14  1939  						    priv->dma_rx_phy, chan);
afea0365 Giuseppe Cavallaro 2016-02-29  1940  

:::::: The code at line 1932 was first introduced by commit
:::::: 50ca903afc2a4ccf7efd25744577fecb0ce6fb49 net: stmmac: simplify the common DMA init API

:::::: TO: Niklas Cassel <niklas.cassel@axis.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

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

  reply	other threads:[~2017-02-14 22:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-14 18:00 [PATCH 0/3] add support for multiple queues/channels in stmmac Joao Pinto
2017-02-14 18:00 ` [PATCH 1/3] net: stmicro: prepare dwmac4 core for mtl Joao Pinto
2017-02-14 22:13   ` kbuild test robot
2017-02-16  3:57   ` kbuild test robot
2017-02-14 18:00 ` [PATCH 2/3] net: stmicro: prepare dwmac4 dma " Joao Pinto
2017-02-14 22:37   ` kbuild test robot [this message]
2017-02-14 18:00 ` [PATCH 3/3] net: stmicro: multiple buffer support Joao Pinto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201702150646.E5GR2OD1%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=Joao.Pinto@synopsys.com \
    --cc=alexandre.torgue@st.com \
    --cc=davem@davemloft.net \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).