diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-09-06 05:03:03 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 12:15:29 -0500 |
commit | 5613d482394e35e363daf51f55971d6cf88d3d7e (patch) | |
tree | 2dc894efa7fefb66af31d4298dfad7e5847f6d7e /arch/mips/wrppmc | |
parent | b2f711d485f07b8592cf7579a89ee8dc14bf3b7c (diff) |
MIPS: wrppmc: Fix build of PCI code.
CC arch/mips/wrppmc/pci.o
/home/ralf/src/linux/linux-mips/arch/mips/wrppmc/pci.c: In function ‘gt64120_pci_init’:
/home/ralf/src/linux/linux-mips/arch/mips/wrppmc/pci.c:41:6: error: variable ‘tmp’ 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/wrppmc')
-rw-r--r-- | arch/mips/wrppmc/pci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/wrppmc/pci.c b/arch/mips/wrppmc/pci.c index d06192faeb7c..8b8a0e1a40ca 100644 --- a/arch/mips/wrppmc/pci.c +++ b/arch/mips/wrppmc/pci.c | |||
@@ -38,10 +38,8 @@ static struct pci_controller hose_0 = { | |||
38 | 38 | ||
39 | static int __init gt64120_pci_init(void) | 39 | static int __init gt64120_pci_init(void) |
40 | { | 40 | { |
41 | u32 tmp; | 41 | (void) GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */ |
42 | 42 | (void) GT_READ(GT_PCI0_BARE_OFS); | |
43 | tmp = GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */ | ||
44 | tmp = GT_READ(GT_PCI0_BARE_OFS); | ||
45 | 43 | ||
46 | /* reset the whole PCI I/O space range */ | 44 | /* reset the whole PCI I/O space range */ |
47 | ioport_resource.start = GT_PCI_IO_BASE; | 45 | ioport_resource.start = GT_PCI_IO_BASE; |