Skip to content

Commit e149fc1

Browse files
Alexander GordeevChristoph Hellwig
authored andcommitted
be2iscsi: Use pci_enable_msix_range()
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() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Acked-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 5e8d900 commit e149fc1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/scsi/be2iscsi/be_main.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5293,9 +5293,9 @@ static void beiscsi_msix_enable(struct beiscsi_hba *phba)
52935293
for (i = 0; i <= phba->num_cpus; i++)
52945294
phba->msix_entries[i].entry = i;
52955295

5296-
status = pci_enable_msix(phba->pcidev, phba->msix_entries,
5297-
(phba->num_cpus + 1));
5298-
if (!status)
5296+
status = pci_enable_msix_range(phba->pcidev, phba->msix_entries,
5297+
phba->num_cpus + 1, phba->num_cpus + 1);
5298+
if (status > 0)
52995299
phba->msix_enabled = true;
53005300

53015301
return;

0 commit comments

Comments
 (0)