]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: wrppmc: Fix build of PCI code.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 6 Sep 2012 09:03:03 +0000 (11:03 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Dec 2012 17:15:29 +0000 (18:15 +0100)
commitd32e919574baf30397bd3792247a72ba88e907d2
tree2dc894efa7fefb66af31d4298dfad7e5847f6d7e
parent7336b200af73623286635caedce12a95b7c303a8
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>
arch/mips/wrppmc/pci.c