Skip to content

Commit 3d31bbd

Browse files
committed
xen/pcifront: Rework MSI handling
Replace the about to vanish iterators. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f2948df commit 3d31bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/xen-pcifront.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int pci_frontend_enable_msix(struct pci_dev *dev,
262262
}
263263

264264
i = 0;
265-
for_each_pci_msi_entry(entry, dev) {
265+
msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) {
266266
op.msix_entries[i].entry = entry->msi_index;
267267
/* Vector is useless at this point. */
268268
op.msix_entries[i].vector = -1;

0 commit comments

Comments
 (0)