Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -4
+2 -4
arch/mips/wrppmc/pci.c
··· 38 38 39 39 static int __init gt64120_pci_init(void) 40 40 { 41 - u32 tmp; 42 - 43 - tmp = GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */ 44 - tmp = GT_READ(GT_PCI0_BARE_OFS); 41 + (void) GT_READ(GT_PCI0_CMD_OFS); /* Huh??? -- Ralf */ 42 + (void) GT_READ(GT_PCI0_BARE_OFS); 45 43 46 44 /* reset the whole PCI I/O space range */ 47 45 ioport_resource.start = GT_PCI_IO_BASE;