aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-07-06 12:43:05 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2022-07-27 21:36:03 +1000
commit407a767182d3dc87176aabddd7c109b36a5727e9 (patch)
tree54d436eba3dab41f185c1866e8523b65b8a44d22
parentpowerpc/pci: Hide pci_device_from_OF_node() for non-powermac code (diff)
downloadlinux-dev-407a767182d3dc87176aabddd7c109b36a5727e9.tar.xz
linux-dev-407a767182d3dc87176aabddd7c109b36a5727e9.zip
powerpc/pci: Make pcibios_make_OF_bus_map() static
Function pcibios_make_OF_bus_map() is used only in pci_32.c. So make it static. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220706104308.5390-3-pali@kernel.org
-rw-r--r--arch/powerpc/kernel/pci_32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c
index c3b91fb62a71..df981294df29 100644
--- a/arch/powerpc/kernel/pci_32.c
+++ b/arch/powerpc/kernel/pci_32.c
@@ -36,8 +36,6 @@ int pcibios_assign_bus_offset = 1;
EXPORT_SYMBOL(isa_io_base);
EXPORT_SYMBOL(pci_dram_offset);
-void __init pcibios_make_OF_bus_map(void);
-
static void fixup_cpc710_pci64(struct pci_dev* dev);
static u8* pci_to_OF_bus_map;
@@ -108,7 +106,7 @@ make_one_node_map(struct device_node* node, u8 pci_bus)
}
}
-void __init
+static void __init
pcibios_make_OF_bus_map(void)
{
int i;