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)
commit24d813b2ec7dc7b617fee835baaf91c42436367b
treec5b55425f244e7efc1ab3599bc8947f114f6f82f
parent7e6f3b6d2c352b5fde37ce3fed83bdf6172eebd4
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/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