Skip to content

Commit

Permalink
MIPS: Malta: Fix section mismatch.
Browse files Browse the repository at this point in the history
  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>
  • Loading branch information
Ralf Baechle committed Oct 11, 2012
1 parent 3efd5a0 commit 2eaaac5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/pci/fixup-malta.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#define PCID 4

/* This table is filled in by interrogating the PIIX4 chip */
static char pci_irq[5] __initdata;
static char pci_irq[5] __devinitdata = {
};

static char irq_tab[][5] __initdata = {
/* INTA INTB INTC INTD */
Expand Down

0 comments on commit 2eaaac5

Please sign in to comment.