Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fnic: Use pci_enable_msix_exact() instead of pci_enable_msix()

As result of deprecation of MSI-X/MSI enablement functions
pci_enable_msix() and pci_enable_msi_block() all drivers
using these two interfaces need to be updated to use the
new pci_enable_msi_range() or pci_enable_msi_exact()
and pci_enable_msix_range() or pci_enable_msix_exact()
interfaces.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Acked-by: "Suma Ramars (sramars)" <sramars@cisco.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>

authored by

Alexander Gordeev and committed by
Christoph Hellwig
1e5df2a5 cbf67842

+2 -2
+2 -2
drivers/scsi/fnic/fnic_isr.c
··· 257 257 fnic->raw_wq_count >= m && 258 258 fnic->wq_copy_count >= o && 259 259 fnic->cq_count >= n + m + o) { 260 - if (!pci_enable_msix(fnic->pdev, fnic->msix_entry, 261 - n + m + o + 1)) { 260 + if (!pci_enable_msix_exact(fnic->pdev, fnic->msix_entry, 261 + n + m + o + 1)) { 262 262 fnic->rq_count = n; 263 263 fnic->raw_wq_count = m; 264 264 fnic->wq_copy_count = o;