]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Split out next_ari_fn() from next_fn()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 28 Jun 2022 14:30:57 +0000 (16:30 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 22 Jul 2022 21:05:00 +0000 (16:05 -0500)
commit3be3b91cb534317808d16b1ec15d77d9fe1ca75a
treed206169ce426ed2b26fe3274bf513ad1c5444559
parenta4ff40df5ae2f303104c5ae733d428cc6fd78d1e
PCI: Split out next_ari_fn() from next_fn()

In commit fdc35f723d69 ("PCI: Consolidate "next-function" functions") the
next_fn() function subsumed the traditional and ARI-based next function
determination. This got rid of some needlessly complex function pointer
handling but also reduced the separation between these very different
methods of finding the next function. With the next_fn() cleaned up a bit
we can re-introduce this separation by moving out the ARI handling while
sticking with direct function calls.

Link: https://lore.kernel.org/r/20220628143100.3228092-3-schnelle@linux.ibm.com
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
drivers/pci/probe.c