]> 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)
commit1d3ddf1a4dbea9e48ddc39ace98d8ccef4943641
tree2dc894efa7fefb66af31d4298dfad7e5847f6d7e
parent716f6b48b5a6a5e1cfab1021b394533334850070
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