PCI: Make the "entries" argument to pci_enable_msix() optional
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Jul 2016 09:20:16 +0000 (18:20 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Jul 2016 20:49:43 +0000 (15:49 -0500)
commit3ac020e0ca8beff9b695f9866a06d50c09c602d6
treedf850544e807b5e90021fc55045871e3f2387d53
parent12eb21de1f26233ad195ffe991697d61790f4193
PCI: Make the "entries" argument to pci_enable_msix() optional

The "entries" argument isn't needed if the list of entries does not contain
any holes.  Make it optional so that we can avoid the need to allocate a
msix_entry structure for this (common) case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alexander Gordeev <agordeev@redhat.com>
drivers/pci/msi.c