summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2018-06-22 22:27:47 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-10 15:12:38 +0300
commitfce278af81daf8599f9e94883cbe43068b6c4785 (patch)
tree3ec63a70a993e7cb610895280700a77ed2d173bd /arch/powerpc
parentf2c6d0d1092e3da2bd36c768777e883fa3908548 (diff)
downloadlinux-fce278af81daf8599f9e94883cbe43068b6c4785.tar.xz
powerpc/mm: remove warning about ‘type’ being set
‘type’ is only used when CONFIG_DEBUG_HIGHMEM is set. So add a possibly unused tag to variable. Remove warning treated as error with W=1: arch/powerpc/mm/highmem.c:59:6: error: variable ‘type’ set but not used [-Werror=unused-but-set-variable] Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/mm/highmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/highmem.c b/arch/powerpc/mm/highmem.c
index 668e87d03f9e..82a0e37557a5 100644
--- a/arch/powerpc/mm/highmem.c
+++ b/arch/powerpc/mm/highmem.c
@@ -56,7 +56,7 @@ EXPORT_SYMBOL(kmap_atomic_prot);
void __kunmap_atomic(void *kvaddr)
{
unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
- int type;
+ int type __maybe_unused;
if (vaddr < __fix_to_virt(FIX_KMAP_END)) {
pagefault_enable();