[xilinx-xlnx:master 10432/12535] drivers/net/ethernet/xilinx/xilinx_tsn_ep.c:57:23: error: implicit declaration of function 'axienet_mcdma_rx_q_init'; did you mean 'axienet_dma_q_init'?

kernel test robot lkp at intel.com
Mon Nov 8 08:20:42 PST 2021


tree:   https://github.com/Xilinx/linux-xlnx master
head:   0a88ef03d3015782318b4bc94ceb20dca375a01b
commit: f2be433a639c7a9beddc59dcaf4f3a5ee9bd511e [10432/12535] net: xilinx: Refactor TSN functions into xilinx_tsn_ip.c
config: sparc64-randconfig-r021-20211103 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Xilinx/linux-xlnx/commit/f2be433a639c7a9beddc59dcaf4f3a5ee9bd511e
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx master
        git checkout f2be433a639c7a9beddc59dcaf4f3a5ee9bd511e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   drivers/net/ethernet/xilinx/xilinx_tsn_ep.c: In function 'tsn_ep_open':
>> drivers/net/ethernet/xilinx/xilinx_tsn_ep.c:57:23: error: implicit declaration of function 'axienet_mcdma_rx_q_init'; did you mean 'axienet_dma_q_init'? [-Werror=implicit-function-declaration]
      57 |                 ret = axienet_mcdma_rx_q_init(ndev, q);
         |                       ^~~~~~~~~~~~~~~~~~~~~~~
         |                       axienet_dma_q_init
>> drivers/net/ethernet/xilinx/xilinx_tsn_ep.c:60:46: error: 'axienet_mcdma_rx_irq' undeclared (first use in this function); did you mean 'axienet_rx_irq'?
      60 |                 ret = request_irq(q->rx_irq, axienet_mcdma_rx_irq,
         |                                              ^~~~~~~~~~~~~~~~~~~~
         |                                              axienet_rx_irq
   drivers/net/ethernet/xilinx/xilinx_tsn_ep.c:60:46: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/net/ethernet/xilinx/xilinx_tsn_ep.c:66:30: error: 'axienet_mcdma_err_handler' undeclared (first use in this function); did you mean 'axienet_dma_err_handler'?
      66 |                              axienet_mcdma_err_handler,
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                              axienet_dma_err_handler
>> drivers/net/ethernet/xilinx/xilinx_tsn_ep.c:74:23: error: implicit declaration of function 'axienet_mcdma_tx_q_init'; did you mean 'axienet_dma_q_init'? [-Werror=implicit-function-declaration]
      74 |                 ret = axienet_mcdma_tx_q_init(ndev, q);
         |                       ^~~~~~~~~~~~~~~~~~~~~~~
         |                       axienet_dma_q_init
>> drivers/net/ethernet/xilinx/xilinx_tsn_ep.c:76:46: error: 'axienet_mcdma_tx_irq' undeclared (first use in this function); did you mean 'axienet_tx_irq'?
      76 |                 ret = request_irq(q->tx_irq, axienet_mcdma_tx_irq,
         |                                              ^~~~~~~~~~~~~~~~~~~~
         |                                              axienet_tx_irq
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PTP_1588_CLOCK
   Depends on NET && POSIX_TIMERS
   Selected by
   - XILINX_TSN_PTP && NETDEVICES && ETHERNET && NET_VENDOR_XILINX && XILINX_TSN
   Selected by
   - XILINX_AXI_EMAC_HWTSTAMP && NETDEVICES && ETHERNET && NET_VENDOR_XILINX && XILINX_AXI_EMAC


vim +57 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c

    30	
    31	/**
    32	 * tsn_ep_open - TSN EP driver open routine.
    33	 * @ndev:	Pointer to net_device structure
    34	 *
    35	 * Return: 0, on success.
    36	 *	    non-zero error value on failure
    37	 *
    38	 * This is the driver open routine. It also allocates interrupt service
    39	 * routines, enables the interrupt lines and ISR handling. Axi Ethernet
    40	 * core is reset through Axi DMA core. Buffer descriptors are initialized.
    41	 */
    42	static int tsn_ep_open(struct net_device *ndev)
    43	{
    44		int ret, i = 0;
    45		struct axienet_local *lp = netdev_priv(ndev);
    46		struct axienet_dma_q *q;
    47	
    48		for_each_tx_dma_queue(lp, i) {
    49			q = lp->dq[i];
    50			/*MCDMA TX RESET*/
    51			__axienet_device_reset(q);
    52		}
    53	
    54		for_each_rx_dma_queue(lp, i) {
    55			q = lp->dq[i];
    56	
  > 57			ret = axienet_mcdma_rx_q_init(ndev, q);
    58			/* Enable interrupts for Axi MCDMA Rx
    59			 */
  > 60			ret = request_irq(q->rx_irq, axienet_mcdma_rx_irq,
    61					  IRQF_SHARED, ndev->name, ndev);
    62			if (ret)
    63				goto err_dma_rx_irq;
    64	
    65			tasklet_init(&lp->dma_err_tasklet[i],
  > 66				     axienet_mcdma_err_handler,
    67				     (unsigned long)lp->dq[i]);
    68			napi_enable(&lp->napi[i]);
    69		}
    70	
    71		for_each_tx_dma_queue(lp, i) {
    72			q = lp->dq[i];
    73	
  > 74			ret = axienet_mcdma_tx_q_init(ndev, q);
    75			/* Enable interrupts for Axi MCDMA Tx */
  > 76			ret = request_irq(q->tx_irq, axienet_mcdma_tx_irq,
    77					  IRQF_SHARED, ndev->name, ndev);
    78			if (ret)
    79				goto err_dma_tx_irq;
    80		}
    81	
    82		netif_tx_start_all_queues(ndev);
    83		return 0;
    84	
    85	err_dma_tx_irq:
    86		for_each_rx_dma_queue(lp, i) {
    87			q = lp->dq[i];
    88			free_irq(q->rx_irq, ndev);
    89		}
    90	err_dma_rx_irq:
    91		return ret;
    92	}
    93	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 37668 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211109/a9169b7c/attachment-0001.gz>


More information about the linux-arm-kernel mailing list