Skip to content

Commit 416426a

Browse files
author
Greg Ungerer
committed
m68k: fix ColdFire mmu init compile warning
Compiling for MMU enabled ColdFire targets gives a warning: CC arch/m68k/mm/mcfmmu.o arch/m68k/mm/mcfmmu.c: In function ‘paging_init’: arch/m68k/mm/mcfmmu.c:42:17: warning: unused variable ‘zone’ [-Wunused-variable] enum zone_type zone; ^~~~ This was caused by changes in commit fa3354e ("mm: free_area_init: use maximal zone PFNs rather than zone sizes") leaving around a now unused variable declaration. Remove the unused variable. Signed-off-by: Greg Ungerer <[email protected]>
1 parent d4aa8af commit 416426a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/m68k/mm/mcfmmu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void __init paging_init(void)
3939
unsigned long address, size;
4040
unsigned long next_pgtable, bootmem_end;
4141
unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
42-
enum zone_type zone;
4342
int i;
4443

4544
empty_zero_page = (void *) memblock_alloc(PAGE_SIZE, PAGE_SIZE);

0 commit comments

Comments
 (0)