[mkl-can-next:testing 13/13] drivers/net/can/flexcan.c:1949: undefined reference to `imx_scu_get_handle'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing
head:   32eb12586955cfd84ece37ecfd7be72965ba1a30
commit: 32eb12586955cfd84ece37ecfd7be72965ba1a30 [13/13] can: flexcan: add CAN wakeup function for i.MX8QM
config: x86_64-randconfig-s022-20201111 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-106-gd020cf33-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/commit/?id=32eb12586955cfd84ece37ecfd7be72965ba1a30
        git remote add mkl-can-next https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git
        git fetch --no-tags mkl-can-next testing
        git checkout 32eb12586955cfd84ece37ecfd7be72965ba1a30
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   ld: drivers/net/can/flexcan.o: in function `flexcan_setup_stop_mode_scfw':
>> drivers/net/can/flexcan.c:1949: undefined reference to `imx_scu_get_handle'
   ld: drivers/net/can/flexcan.o: in function `flexcan_stop_mode_enable_scfw':
>> drivers/net/can/flexcan.c:570: undefined reference to `imx_sc_misc_set_control'
>> ld: drivers/net/can/flexcan.c:570: undefined reference to `imx_sc_misc_set_control'

vim +1949 drivers/net/can/flexcan.c

  1931	
  1932	static int flexcan_setup_stop_mode_scfw(struct platform_device *pdev)
  1933	{
  1934		struct net_device *dev = platform_get_drvdata(pdev);
  1935		struct flexcan_priv *priv;
  1936		u8 scu_idx;
  1937		int ret;
  1938	
  1939		ret = of_property_read_u8(pdev->dev.of_node, "fsl,scu-index", &scu_idx);
  1940		if (ret < 0) {
  1941			dev_dbg(&pdev->dev, "failed to get scu index\n");
  1942			return ret;
  1943		}
  1944	
  1945		priv = netdev_priv(dev);
  1946		priv->scu_idx = scu_idx;
  1947	
  1948		/* this function could be defered probe, return -EPROBE_DEFER */
> 1949		return imx_scu_get_handle(&priv->sc_ipc_handle);
  1950	}
  1951	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux