linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [xlnx:xlnx_rebase_v5.4 1296/1696] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:214 axienet_dma_bd_init() error: uninitialized symbol 'ret'.
@ 2020-12-07 10:01 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2020-12-07 10:01 UTC (permalink / raw)
  To: kbuild, Vishal Sagar
  Cc: Michal Simek, Hyun Kwon, kbuild-all, lkp, linux-arm-kernel

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

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
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:1534 axienet_mii_init() warn: inconsistent returns 'lp->mii_bus->mdio_lock'.

vim +/ret +214 drivers/net/ethernet/xilinx/xilinx_axienet_main.c
  1688  static int axienet_mii_init(struct net_device *ndev)
  1689  {
  1690          struct axienet_local *lp = netdev_priv(ndev);
  1691          int ret;
  1692  
  1693          /* Disable the MDIO interface till Axi Ethernet Reset is completed.
  1694           * When we do an Axi Ethernet reset, it resets the complete core
  1695           * including the MDIO. MDIO must be disabled before resetting
  1696           * and re-enabled afterwards.
  1697           * Hold MDIO bus lock to avoid MDIO accesses during the reset.
  1698           */
  1699  
  1700          mutex_lock(&lp->mii_bus->mdio_lock);
  1701          ret = axienet_mdio_wait_until_ready(lp);
  1702          if (ret < 0)
  1703                  return ret;
                        ^^^^^^^^^^^
Unlock before returning.

  1704          axienet_mdio_disable(lp);
  1705          axienet_device_reset(ndev);
  1706          ret = axienet_mdio_enable(lp);
  1707          ret = axienet_mdio_wait_until_ready(lp);
  1708          mutex_unlock(&lp->mii_bus->mdio_lock);
  1709          if (ret < 0)
  1710                  return ret;
  1711  
  1712          return 0;
  1713  }

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

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

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

only message in thread, other threads:[~2020-12-07 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).