Re: [PATCH RFCv1 5/7] PCI/MSI: Extract a common __pci_alloc_irq_vectors function

From: Andy Shevchenko
Date: Mon Nov 11 2024 - 04:33:51 EST


On Fri, Nov 08, 2024 at 09:48:50PM -0800, Nicolin Chen wrote:
> Extract a common function from the existing callers, to prepare for a new
> helper that provides an array of msi_iovas. Also, extract the msi_iova(s)
> from the array and pass in properly down to __pci_enable_msi/msix_range().

...

> + return __pci_alloc_irq_vectors(dev, min_vecs, max_vecs,
> + flags, NULL, NULL);

Even if you so strict about 80 character limit, this whole line is only 83
characters, which is okay to have.

...

> + return __pci_alloc_irq_vectors(dev, min_vecs, max_vecs,
> + flags, affd, NULL);

In the similar way, and other lines as well.

--
With Best Regards,
Andy Shevchenko