[xilinx-xlnx:xlnx_rebase_v5.15 225/924] drivers/net/ethernet/xilinx/xilinx_axienet.h:973:2: error: implicit declaration of function 'writeq'

kernel test robot lkp at intel.com
Tue Feb 15 03:23:31 PST 2022


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head:   66bb31d008b55b6ae2ca9e41f7a4ff21816dded3
commit: ee94241b2118ddd38a456b2b805fc584b57de58f [225/924] net: axienet: added multichannel DMA support
config: i386-randconfig-a005-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151714.yArZWj6O-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/ee94241b2118ddd38a456b2b805fc584b57de58f
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
        git checkout ee94241b2118ddd38a456b2b805fc584b57de58f
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

   In file included from drivers/net/ethernet/xilinx/xilinx_axienet_main.c:48:
>> drivers/net/ethernet/xilinx/xilinx_axienet.h:973:2: error: implicit declaration of function 'writeq' [-Werror,-Wimplicit-function-declaration]
           writeq(value, (q->dma_regs + reg));
           ^
   1 error generated.


vim +/writeq +973 drivers/net/ethernet/xilinx/xilinx_axienet.h

   959	
   960	/**
   961	 * axienet_dma_bdout - Memory mapped Axi DMA register Buffer Descriptor write.
   962	 * @q:		Pointer to DMA queue structure
   963	 * @reg:	Address offset from the base address of the Axi DMA core
   964	 * @value:	Value to be written into the Axi DMA register
   965	 *
   966	 * This function writes the desired value into the corresponding Axi DMA
   967	 * register.
   968	 */
   969	static inline void axienet_dma_bdout(struct axienet_dma_q *q,
   970					     off_t reg, dma_addr_t value)
   971	{
   972	#if defined(CONFIG_PHYS_ADDR_T_64BIT)
 > 973		writeq(value, (q->dma_regs + reg));
   974	#else
   975		writel(value, (q->dma_regs + reg));
   976	#endif
   977	}
   978	/* Function prototypes visible in xilinx_axienet_mdio.c for other files */
   979	int axienet_mdio_enable(struct axienet_local *lp);
   980	void axienet_mdio_disable(struct axienet_local *lp);
   981	int axienet_mdio_setup(struct axienet_local *lp);
   982	void axienet_mdio_teardown(struct axienet_local *lp);
   983	int axienet_mdio_wait_until_ready(struct axienet_local *lp);
   984	void __maybe_unused axienet_bd_free(struct net_device *ndev,
   985					    struct axienet_dma_q *q);
   986	int __maybe_unused axienet_dma_q_init(struct net_device *ndev,
   987					      struct axienet_dma_q *q);
   988	void axienet_dma_err_handler(unsigned long data);
   989	irqreturn_t __maybe_unused axienet_tx_irq(int irq, void *_ndev);
   990	irqreturn_t __maybe_unused axienet_rx_irq(int irq, void *_ndev);
   991	void axienet_start_xmit_done(struct net_device *ndev, struct axienet_dma_q *q);
   992	void axienet_dma_bd_release(struct net_device *ndev);
   993	void __axienet_device_reset(struct axienet_dma_q *q);
   994	void axienet_set_mac_address(struct net_device *ndev, const void *address);
   995	void axienet_set_multicast_list(struct net_device *ndev);
   996	int xaxienet_rx_poll(struct napi_struct *napi, int quota);
   997	

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



More information about the linux-arm-kernel mailing list