]> git.baikalelectronics.ru Git - kernel.git/commitdiff
xen/pcifront: Rework MSI handling
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:51:21 +0000 (23:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:22:18 +0000 (22:22 +0100)
Replace the about to vanish iterators.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211206210748.251752714@linutronix.de
drivers/pci/xen-pcifront.c

index bacf51152168e9e6f51864c22d104042a2cd6d44..d2a7b9fd678b9354dc2c89809e059d1cf9b1fb1d 100644 (file)
@@ -262,7 +262,7 @@ static int pci_frontend_enable_msix(struct pci_dev *dev,
        }
 
        i = 0;
-       for_each_pci_msi_entry(entry, dev) {
+       msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) {
                op.msix_entries[i].entry = entry->msi_index;
                /* Vector is useless at this point. */
                op.msix_entries[i].vector = -1;