diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-10-11 05:14:12 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-10-11 05:14:12 -0400 |
commit | 2eaaac508a7435dda92f9f16d612a1354ea3d7c4 (patch) | |
tree | ed160220db39c849f482e4a404f1c42a8ae11830 | |
parent | 3efd5a0db50157cb55cef9ea77ce1d470df61a80 (diff) |
MIPS: Malta: Fix section mismatch.
LD arch/mips/pci/built-in.o
WARNING: arch/mips/pci/built-in.o(.devinit.text+0x2a0): Section mismatch in reference from the function malta_piix_func0_fixup() to the variable .init.data:pci_irq
The function __devinit malta_piix_func0_fixup() references
a variable __initdata pci_irq.
If pci_irq is only used by malta_piix_func0_fixup then
annotate pci_irq with a matching annotation.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/pci/fixup-malta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/pci/fixup-malta.c b/arch/mips/pci/fixup-malta.c index 819622f93e9c..9a1a2244522a 100644 --- a/arch/mips/pci/fixup-malta.c +++ b/arch/mips/pci/fixup-malta.c | |||
@@ -8,7 +8,8 @@ | |||
8 | #define PCID 4 | 8 | #define PCID 4 |
9 | 9 | ||
10 | /* This table is filled in by interrogating the PIIX4 chip */ | 10 | /* This table is filled in by interrogating the PIIX4 chip */ |
11 | static char pci_irq[5] __initdata; | 11 | static char pci_irq[5] __devinitdata = { |
12 | }; | ||
12 | 13 | ||
13 | static char irq_tab[][5] __initdata = { | 14 | static char irq_tab[][5] __initdata = { |
14 | /* INTA INTB INTC INTD */ | 15 | /* INTA INTB INTC INTD */ |