简体   繁体   中英

PCIe DMA Driver for Linux

I am currently working on a Virtex 7 FPGA . I am trying to install the driver for the PCIe DMA driver for linux . But it is giving me the following error :

error: implicit declaration of function 'pci_enable_msix' [-Werror=implicit-function-declaration]

Can someone help me with this error ?

Linux 4.8 replaced it with pci_enable_msix_range . You can fix it like this:

#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
        rc = pci_enable_msix(pdev, lro->entry, req_nvec);
#else
        rc = pci_enable_msix_range(pdev, lro->entry, req_nvec, req_nvec);
#endif

Linux交叉引用是解决此类问题的很好资源,因为您可以探索API在内核版本上的变化。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM