From 6b1bd4aed012fbf18bdb062015c36d87d33e8629 Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Mon, 26 Apr 2021 04:58:08 -0700 Subject: [PATCH] Replaced deprecated pci_enable_msix() call with equivalent pci_enable_msix_exact() call. See also: - https://patchwork.kernel.org/project/linux-pci/patch/1412955343-27239-1-git-send-email-agordeev@redhat.com/ - http://tomoyo.osdn.jp/cgi-bin/lxr/source/Documentation/PCI/MSI-HOWTO.txt?v=linux-4.7.10 --- host/linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/linux.c b/host/linux.c index fd0411a..94e921a 100644 --- a/host/linux.c +++ b/host/linux.c @@ -308,7 +308,7 @@ mic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) if (mic_msi_enable){ for (i = 0; i < MIC_NUM_MSIX_ENTRIES; i ++) bd_info->bi_msix_entries[i].entry = i; - err = pci_enable_msix(mic_ctx->bi_pdev, bd_info->bi_msix_entries, + err = pci_enable_msix_exact(mic_ctx->bi_pdev, bd_info->bi_msix_entries, MIC_NUM_MSIX_ENTRIES); if (err == 0 ) { // Only support 1 MSIx for now -- 2.20.1