Commit 5613d482 authored by Ralf Baechle's avatar Ralf Baechle

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: default avatarRalf Baechle <ralf@linux-mips.org>
parent b2f711d4
...@@ -38,10 +38,8 @@ static struct pci_controller hose_0 = { ...@@ -38,10 +38,8 @@ static struct pci_controller hose_0 = {
static int __init gt64120_pci_init(void) static int __init gt64120_pci_init(void)
{ {
u32 tmp; (void) GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */
(void) GT_READ(GT_PCI0_BARE_OFS);
tmp = GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */
tmp = GT_READ(GT_PCI0_BARE_OFS);
/* reset the whole PCI I/O space range */ /* reset the whole PCI I/O space range */
ioport_resource.start = GT_PCI_IO_BASE; ioport_resource.start = GT_PCI_IO_BASE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment