]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Highmem: Fix build error if CONFIG_DEBUG_HIGHMEM is disabled
authorRalf Baechle <ralf@linux-mips.org>
Thu, 6 Sep 2012 09:29:53 +0000 (11:29 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Dec 2012 17:15:27 +0000 (18:15 +0100)
commitd161d24c0ae63c418ae8df38c8092ad4fe2273f7
tree7b49b180a11e23824566792cea52be0476bfd4c7
parentd06f96fd6e44eb62fcadf9510e8a71edfa1b3f5e
MIPS: Highmem: Fix build error if CONFIG_DEBUG_HIGHMEM is disabled

  CC      arch/mips/mm/highmem.o
/home/ralf/src/linux/linux-mips/arch/mips/mm/highmem.c: In function ‘__kunmap_atomic’:
/home/ralf/src/linux/linux-mips/arch/mips/mm/highmem.c:70:6: error: variable ‘type’ 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/mm/highmem.c