Skip to content

Commit fce278a

Browse files
malaterrempe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent f2c6d0d commit fce278a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/highmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ EXPORT_SYMBOL(kmap_atomic_prot);
5656
void __kunmap_atomic(void *kvaddr)
5757
{
5858
unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
59-
int type;
59+
int type __maybe_unused;
6060

6161
if (vaddr < __fix_to_virt(FIX_KMAP_END)) {
6262
pagefault_enable();

0 commit comments

Comments
 (0)