uisrc 发表于 2021-8-6 16:14:03

xdma驱动错误解决error: implicit declaration of function ‘pci_enable_msix’

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

页: [1]
查看完整版本: xdma驱动错误解决error: implicit declaration of function ‘pci_enable_msix’