刚刚开始学Linux,编译Xilinx提供的AXI DMA代码出现以下问题,求高手指教! 附件是Xilinx提供的驱动程序xilinx.rar
make -C ../linux-digilent-master/ M=/home/zynq/DMA_TEST modules make[1]: Entering directory `/home/zynq/linux-digilent-master' CC [M] /home/zynq/DMA_TEST/xilinx_axidma.o /home/zynq/DMA_TEST/xilinx_axidma.c: In function 'xilinx_dma_chan_probe': /home/zynq/DMA_TEST/xilinx_axidma.c:964:18: error: 'XILINX_DMA_DEVICE_ID_SHIFT' undeclared (first use in this function) /home/zynq/DMA_TEST/xilinx_axidma.c:964:18: note: each undeclared identifier is reported only once for each function it appears in /home/zynq/DMA_TEST/xilinx_axidma.c: In function 'xilinx_dma_probe': /home/zynq/DMA_TEST/xilinx_axidma.c:1023:2: error: implicit declaration of function 'devm_ioremap_resource' [-Werror=implicit-function-declaration] /home/zynq/DMA_TEST/xilinx_axidma.c:1023:13: warning: assignment makes pointer from integer without a cast [enabled by default] cc1: some warnings being treated as errors make[2]: *** [/home/zynq/DMA_TEST/xilinx_axidma.o] Error 1 make[1]: *** [_module_/home/zynq/DMA_TEST] Error 2 make[1]: Leaving directory `/home/zynq/linux-digilent-master' make: *** [all] Error 2