All of lore.kernel.org
 help / color / mirror / Atom feed
* [xlnx:master 9663/10253] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:204 axienet_dma_bd_init() error: uninitialized symbol 'ret'.
@ 2020-09-20 22:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-20 22:25 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-arm-kernel(a)lists.infradead.org
TO: Saurabh Sengar <saurabh.singh@xilinx.com>
CC: Michal Simek <monstr@monstr.eu>
CC: Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com>
CC: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>

tree:   https://github.com/Xilinx/linux-xlnx master
head:   ebc67ce2d1e7fa15806c226e2461ffd7b42cd188
commit: 0f447249ba48721e24292b1ddacf1b4b4e21d9a7 [9663/10253] net: axienet: added multichannel DMA support
:::::: branch date: 5 days ago
:::::: commit date: 7 months ago
config: i386-randconfig-m021-20200920 (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>

smatch warnings:
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:204 axienet_dma_bd_init() error: uninitialized symbol 'ret'.

# https://github.com/Xilinx/linux-xlnx/commit/0f447249ba48721e24292b1ddacf1b4b4e21d9a7
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx master
git checkout 0f447249ba48721e24292b1ddacf1b4b4e21d9a7
vim +/ret +204 drivers/net/ethernet/xilinx/xilinx_axienet_main.c

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

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

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

only message in thread, other threads:[~2020-09-20 22:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-20 22:25 [xlnx:master 9663/10253] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:204 axienet_dma_bd_init() error: uninitialized symbol 'ret' kernel 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.