PCI: Make pci_assign_unassigned_resources() non-init
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 25 Sep 2023 04:23:16 +0000 (21:23 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Oct 2023 16:11:31 +0000 (11:11 -0500)
Fix a section mismatch warning on Sparc 32-bit:

  WARNING: modpost: vmlinux: section mismatch in reference: leon_pci_init+0xf8 (section: .text) -> pci_assign_unassigned_resources (section: .init.text)

This is due to this comment from arch/sparc/kernel/leon_pci.c:

  The LEON architecture does not rely on a BIOS or bootloader to setup PCI
  for us. The Linux generic routines are used to setup resources, reset
  values of configuration-space register settings are preserved.

Link: https://lore.kernel.org/r/20230925042316.15415-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
drivers/pci/setup-bus.c

index dae490f25641770dcd2c9f484aa4e3f3d4dd0658..fd74f1c99dbae766ab67e3cd9d3550b4452b495e 100644 (file)
@@ -2129,7 +2129,7 @@ dump:
        pci_bus_dump_resources(bus);
 }
 
-void __init pci_assign_unassigned_resources(void)
+void pci_assign_unassigned_resources(void)
 {
        struct pci_bus *root_bus;