From: Thomas Gleixner Date: Mon, 6 Dec 2021 22:51:21 +0000 (+0100) Subject: xen/pcifront: Rework MSI handling X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3d31bbd39aa5c7467a34e8202a983e81b696a883;p=linux.git xen/pcifront: Rework MSI handling Replace the about to vanish iterators. Signed-off-by: Thomas Gleixner Reviewed-by: Jason Gunthorpe Link: https://lore.kernel.org/r/20211206210748.251752714@linutronix.de --- diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c index bacf51152168e..d2a7b9fd678b9 100644 --- a/drivers/pci/xen-pcifront.c +++ b/drivers/pci/xen-pcifront.c @@ -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;