From c8dd50b05174a624510c8844454a6fe424a95232 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 24 Sep 2021 17:05:35 -0700 Subject: [PATCH] pcie_print_link_status was added in kernel version 4.17 --- modules/mqnic/mqnic_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/mqnic/mqnic_main.c b/modules/mqnic/mqnic_main.c index 7eae3d91d..ee04a6ea9 100644 --- a/modules/mqnic/mqnic_main.c +++ b/modules/mqnic/mqnic_main.c @@ -146,7 +146,9 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent #ifdef CONFIG_NUMA dev_info(dev, " NUMA node: %d", pdev->dev.numa_node); #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0) pcie_print_link_status(pdev); +#endif if (!(mqnic = devm_kzalloc(dev, sizeof(*mqnic), GFP_KERNEL))) {