diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-12-06 23:51:21 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-12-16 22:22:18 +0100 |
commit | 3d31bbd39aa5c7467a34e8202a983e81b696a883 (patch) | |
tree | 0bdf9774f04a13ac0ae38eb47bfadc1dafeea3f6 /drivers/pci/xen-pcifront.c | |
parent | x86/pci/xen: Use msi_for_each_desc() (diff) | |
download | linux-3d31bbd39aa5c7467a34e8202a983e81b696a883.tar.xz linux-3d31bbd39aa5c7467a34e8202a983e81b696a883.zip |
xen/pcifront: Rework MSI handling
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
Diffstat (limited to 'drivers/pci/xen-pcifront.c')
-rw-r--r-- | drivers/pci/xen-pcifront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c index bacf51152168..d2a7b9fd678b 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; |