Skip to content

Commit 24d813b

Browse files
rddunlapbjorn-helgaas
authored andcommitted
PCI: Make pci_assign_unassigned_resources() non-init
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/[email protected] Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: [email protected]
1 parent 7e6f3b6 commit 24d813b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/setup-bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2129,7 +2129,7 @@ void pci_assign_unassigned_root_bus_resources(struct pci_bus *bus)
21292129
pci_bus_dump_resources(bus);
21302130
}
21312131

2132-
void __init pci_assign_unassigned_resources(void)
2132+
void pci_assign_unassigned_resources(void)
21332133
{
21342134
struct pci_bus *root_bus;
21352135

0 commit comments

Comments
 (0)