All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [xlnx:xlnx_rebase_v5.4 1296/1696] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:214 axienet_dma_bd_init() error: uninitialized symbol 'ret'.
Date: Sat, 05 Dec 2020 23:29:49 +0800	[thread overview]
Message-ID: <202012052342.7qbyOptJ-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
CC: linux-arm-kernel(a)lists.infradead.org
TO: Vishal Sagar <vishal.sagar@xilinx.com>
CC: Michal Simek <monstr@monstr.eu>
CC: Hyun Kwon <hyun.kwon@xilinx.com>

Hi Vishal,

First bad commit (maybe != root cause):

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   61e889430e4c71c59bc43d5b4a23ef1f5845cd70
commit: 0b197959bbbdb68e1da974bd013339f08704b178 [1296/1696] staging: xlnxsync: Fix the uapi header license
:::::: branch date: 2 days ago
:::::: commit date: 7 months ago
config: x86_64-randconfig-m031-20201204 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:214 axienet_dma_bd_init() error: uninitialized symbol 'ret'.
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1534 axienet_mii_init() warn: inconsistent returns 'lp->mii_bus->mdio_lock'.
drivers/usb/storage/uas.c:537 uas_workaround() warn: possible memory leak of 'temp_request'

Old smatch warnings:
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1608 axienet_open() warn: inconsistent indenting
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1610 axienet_open() warn: inconsistent indenting
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1832 axienet_stop() warn: inconsistent indenting
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1839 axienet_stop() warn: inconsistent indenting

vim +/ret +214 drivers/net/ethernet/xilinx/xilinx_axienet_main.c

8a3b7a252dca9fb Daniel Borkmann              2012-01-19  179  
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  180  /**
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  181   * axienet_dma_bd_init - Setup buffer descriptor rings for Axi DMA
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  182   * @ndev:	Pointer to the net_device structure
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  183   *
b0d081c524b46c2 Michal Simek                 2015-05-05  184   * Return: 0, on success -ENOMEM, on failure
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  185   *
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  186   * This function is called to initialize the Rx and Tx DMA descriptor
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  187   * rings. This initializes the descriptors with required default values
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  188   * and is called when Axi Ethernet driver reset is called.
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  189   */
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  190  static int axienet_dma_bd_init(struct net_device *ndev)
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  191  {
51054464602520b Saurabh Sengar               2020-01-24  192  	int i, ret;
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  193  	struct axienet_local *lp = netdev_priv(ndev);
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  194  
51054464602520b Saurabh Sengar               2020-01-24  195  #ifdef CONFIG_AXIENET_HAS_MCDMA
51054464602520b Saurabh Sengar               2020-01-24  196  	for_each_tx_dma_queue(lp, i) {
51054464602520b Saurabh Sengar               2020-01-24  197  		ret = axienet_mcdma_tx_q_init(ndev, lp->dq[i]);
51054464602520b Saurabh Sengar               2020-01-24  198  		if (ret != 0)
51054464602520b Saurabh Sengar               2020-01-24  199  			break;
51054464602520b Saurabh Sengar               2020-01-24  200  	}
51054464602520b Saurabh Sengar               2020-01-24  201  #endif
51054464602520b Saurabh Sengar               2020-01-24  202  	for_each_rx_dma_queue(lp, i) {
51054464602520b Saurabh Sengar               2020-01-24  203  #ifdef CONFIG_AXIENET_HAS_MCDMA
51054464602520b Saurabh Sengar               2020-01-24  204  		ret = axienet_mcdma_rx_q_init(ndev, lp->dq[i]);
51054464602520b Saurabh Sengar               2020-01-24  205  #else
51054464602520b Saurabh Sengar               2020-01-24  206  		ret = axienet_dma_q_init(ndev, lp->dq[i]);
51054464602520b Saurabh Sengar               2020-01-24  207  #endif
51054464602520b Saurabh Sengar               2020-01-24  208  		if (ret != 0) {
51054464602520b Saurabh Sengar               2020-01-24  209  			netdev_err(ndev, "%s: Failed to init DMA buf\n", __func__);
51054464602520b Saurabh Sengar               2020-01-24  210  			break;
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  211  		}
8daf52f28b3fa37 Appana Durga Kedareswara Rao 2020-01-24  212  	}
8daf52f28b3fa37 Appana Durga Kedareswara Rao 2020-01-24  213  
51054464602520b Saurabh Sengar               2020-01-24 @214  	return ret;
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  215  }
8a3b7a252dca9fb Daniel Borkmann              2012-01-19  216  

:::::: The code at line 214 was first introduced by commit
:::::: 51054464602520b2dbb7288048a68732956cc5f4 net: axienet: added multichannel DMA support

:::::: TO: Saurabh Sengar <saurabh.singh@xilinx.com>
:::::: CC: Michal Simek <michal.simek@xilinx.com>

---
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: 35478 bytes --]

             reply	other threads:[~2020-12-05 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-05 15:29 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-07 10:01 [xlnx:xlnx_rebase_v5.4 1296/1696] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:214 axienet_dma_bd_init() error: uninitialized symbol 'ret' Dan Carpenter
2020-12-07 10:01 ` Dan Carpenter
2020-12-07 10:01 ` Dan Carpenter

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=202012052342.7qbyOptJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /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 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.