diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-09-06 05:29:53 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 12:15:27 -0500 |
commit | b99fbc10df4fc616908aa0504cba125acf9b4e48 (patch) | |
tree | 7b49b180a11e23824566792cea52be0476bfd4c7 /arch/mips/mm/highmem.c | |
parent | a16dad7763420a3b46cff1e703a9070827796cfc (diff) |
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>
Diffstat (limited to 'arch/mips/mm/highmem.c')
-rw-r--r-- | arch/mips/mm/highmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mm/highmem.c b/arch/mips/mm/highmem.c index aff57057a949..da815d295239 100644 --- a/arch/mips/mm/highmem.c +++ b/arch/mips/mm/highmem.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <linux/compiler.h> | ||
1 | #include <linux/module.h> | 2 | #include <linux/module.h> |
2 | #include <linux/highmem.h> | 3 | #include <linux/highmem.h> |
3 | #include <linux/sched.h> | 4 | #include <linux/sched.h> |
@@ -67,7 +68,7 @@ EXPORT_SYMBOL(kmap_atomic); | |||
67 | void __kunmap_atomic(void *kvaddr) | 68 | void __kunmap_atomic(void *kvaddr) |
68 | { | 69 | { |
69 | unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK; | 70 | unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK; |
70 | int type; | 71 | int type __maybe_unused; |
71 | 72 | ||
72 | if (vaddr < FIXADDR_START) { // FIXME | 73 | if (vaddr < FIXADDR_START) { // FIXME |
73 | pagefault_enable(); | 74 | pagefault_enable(); |