]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Move resource reassignment func declarations into pci/pci.h
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 11 Mar 2025 17:46:59 +0000 (19:46 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Mar 2025 21:44:25 +0000 (16:44 -0500)
commit7d4bcc0f2631e4ee10b5bcfff24a423d1c3c02a3
tree323fa2f1d71a303e657c65287a70e0a3d78c493d
parent95c4e6d42c99237c0264d1a401a6223849477cb6
PCI: Move resource reassignment func declarations into pci/pci.h

Neither pci_reassign_bridge_resources() nor pci_reassign_resource() is used
outside of the PCI subsystem. They seem to be naturally static functions
but since resource fitting/assignment is split between setup-bus.c and
setup-res.c, they fall into different sides of the divide and need to be
declared.

Move the declarations of pci_reassign_bridge_resources() and
pci_reassign_resource() into pci/pci.h to keep them internal to PCI
subsystem.

Link: https://lore.kernel.org/r/20250311174701.3586-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h
include/linux/pci.h