summaryrefslogtreecommitdiffstats
path: root/arch/m68k/mm
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2020-06-15 02:41:08 +0200
committerGreg Ungerer <gerg@linux-m68k.org>2020-07-27 04:32:00 +0200
commit416426ab79b713a40c8f8d0428dfbfd2e0f7c080 (patch)
tree9a62abc2007a346cd7f7943965d292ecdd6de697 /arch/m68k/mm
parentm68knommu: fix use of cpu_to_le() on IO access (diff)
downloadlinux-416426ab79b713a40c8f8d0428dfbfd2e0f7c080.tar.xz
linux-416426ab79b713a40c8f8d0428dfbfd2e0f7c080.zip
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 fa3354e4ea39 ("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 <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r--arch/m68k/mm/mcfmmu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/m68k/mm/mcfmmu.c b/arch/m68k/mm/mcfmmu.c
index 7d04210d34f0..fe1a84891035 100644
--- a/arch/m68k/mm/mcfmmu.c
+++ b/arch/m68k/mm/mcfmmu.c
@@ -39,7 +39,6 @@ void __init paging_init(void)
unsigned long address, size;
unsigned long next_pgtable, bootmem_end;
unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
- enum zone_type zone;
int i;
empty_zero_page = (void *) memblock_alloc(PAGE_SIZE, PAGE_SIZE);