Skip to content

Commit

Permalink
MIPS: wrppmc: Fix build of PCI code.
Browse files Browse the repository at this point in the history
  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>
  • Loading branch information
Ralf Baechle committed Dec 13, 2012
1 parent b2f711d commit 5613d48
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/mips/wrppmc/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ static struct pci_controller hose_0 = {

static int __init gt64120_pci_init(void)
{
u32 tmp;

tmp = GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */
tmp = GT_READ(GT_PCI0_BARE_OFS);
(void) GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */
(void) GT_READ(GT_PCI0_BARE_OFS);

/* reset the whole PCI I/O space range */
ioport_resource.start = GT_PCI_IO_BASE;
Expand Down

0 comments on commit 5613d48

Please sign in to comment.