1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

pcie_print_link_status was added in kernel version 4.17

This commit is contained in:
Alex Forencich 2021-09-24 17:05:35 -07:00
parent 39fbc194fd
commit c8dd50b051

View File

@ -146,7 +146,9 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
#ifdef CONFIG_NUMA #ifdef CONFIG_NUMA
dev_info(dev, " NUMA node: %d", pdev->dev.numa_node); dev_info(dev, " NUMA node: %d", pdev->dev.numa_node);
#endif #endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0)
pcie_print_link_status(pdev); pcie_print_link_status(pdev);
#endif
if (!(mqnic = devm_kzalloc(dev, sizeof(*mqnic), GFP_KERNEL))) if (!(mqnic = devm_kzalloc(dev, sizeof(*mqnic), GFP_KERNEL)))
{ {