diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-09-06 04:02:40 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 12:15:28 -0500 |
commit | b2f711d485f07b8592cf7579a89ee8dc14bf3b7c (patch) | |
tree | ec8d8bc679e7642aa65d14ce9fb4dec366775a63 /arch/mips | |
parent | 66315e15cd937cec2eae5d450ddc787907d29854 (diff) |
MIPS: IP22/IP28: Fix build of EISA code.
CC arch/mips/sgi-ip22/ip22-eisa.o
/home/ralf/src/linux/linux-mips/arch/mips/sgi-ip22/ip22-eisa.c: In function ‘ip22_eisa_intr’:
/home/ralf/src/linux/linux-mips/arch/mips/sgi-ip22/ip22-eisa.c:77:11: error: variable ‘dma2’ set but not used [-Werror=unused-but-set-variable]
/home/ralf/src/linux/linux-mips/arch/mips/sgi-ip22/ip22-eisa.c:77:5: error: variable ‘dma1’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
This warning exists in gcc 4.6.0 and newer. Kernels 2.6.40 and newer use
-Wunused-but-set-variable to suppress it.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-eisa.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/mips/sgi-ip22/ip22-eisa.c b/arch/mips/sgi-ip22/ip22-eisa.c index da44ccb20829..4a6057b35b9d 100644 --- a/arch/mips/sgi-ip22/ip22-eisa.c +++ b/arch/mips/sgi-ip22/ip22-eisa.c | |||
@@ -73,12 +73,10 @@ static char __init *decode_eisa_sig(unsigned long addr) | |||
73 | 73 | ||
74 | static irqreturn_t ip22_eisa_intr(int irq, void *dev_id) | 74 | static irqreturn_t ip22_eisa_intr(int irq, void *dev_id) |
75 | { | 75 | { |
76 | u8 eisa_irq; | 76 | u8 eisa_irq = inb(EIU_INTRPT_ACK); |
77 | u8 dma1, dma2; | ||
78 | 77 | ||
79 | eisa_irq = inb(EIU_INTRPT_ACK); | 78 | inb(EISA_DMA1_STATUS); |
80 | dma1 = inb(EISA_DMA1_STATUS); | 79 | inb(EISA_DMA2_STATUS); |
81 | dma2 = inb(EISA_DMA2_STATUS); | ||
82 | 80 | ||
83 | if (eisa_irq < EISA_MAX_IRQ) { | 81 | if (eisa_irq < EISA_MAX_IRQ) { |
84 | do_IRQ(eisa_irq); | 82 | do_IRQ(eisa_irq); |