summaryrefslogtreecommitdiffstats
path: root/arch/mips/pci/pci-alchemy.c
diff options
context:
space:
mode:
authorManuel Lauss <manuel.lauss@gmail.com>2017-09-12 20:36:28 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-09-21 16:41:20 +0200
commit8eba3651f1dad49c83bb7f8d672301dac4c6add6 (patch)
tree9a1016416c28c82c3471aac4b437bcb1c15c29db /arch/mips/pci/pci-alchemy.c
parentc22c8043105591a8b74142cf837604087cdba40b (diff)
downloadlinux-stable-8eba3651f1dad49c83bb7f8d672301dac4c6add6.tar.gz
linux-stable-8eba3651f1dad49c83bb7f8d672301dac4c6add6.tar.bz2
linux-stable-8eba3651f1dad49c83bb7f8d672301dac4c6add6.zip
MIPS: PCI: fix pcibios_map_irq section mismatch
Drop the __init from pcibios_map_irq() to make this section mis- match go away: WARNING: vmlinux.o(.text+0x56acd4): Section mismatch in reference from the function pcibios_scanbus() to the function .init.text:pcibios_map_irq() The function pcibios_scanbus() references the function __init pcibios_map_irq(). This is often because pcibios_scanbus lacks a __init annotation or the annotation of pcibios_map_irq is wrong. Run-Tested only on Alchemy. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/17267/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci/pci-alchemy.c')
-rw-r--r--arch/mips/pci/pci-alchemy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/pci-alchemy.c b/arch/mips/pci/pci-alchemy.c
index e99ca7702d8a..f15ec98de2de 100644
--- a/arch/mips/pci/pci-alchemy.c
+++ b/arch/mips/pci/pci-alchemy.c
@@ -522,7 +522,7 @@ static int __init alchemy_pci_init(void)
arch_initcall(alchemy_pci_init);
-int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
+int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
struct alchemy_pci_context *ctx = dev->sysdata;
if (ctx && ctx->board_map_irq)