mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
m68k: coldfire: remove unused variable in MMU code
When building with W=1:
CC arch/m68k/mm/mcfmmu.o
arch/m68k/mm/mcfmmu.c: In function ‘paging_init’:
arch/m68k/mm/mcfmmu.c:41:30: warning: variable ‘bootmem_end’ set but not used [-Wunused-but-set-variable]
unsigned long next_pgtable, bootmem_end;
^~~~~~~~~~~
Remove variable bootmem_end and its unused setting.
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
This commit is contained in:
parent
3b4497668f
commit
0a49a430e6
1 changed files with 1 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ void __init paging_init(void)
|
|||
pgd_t *pg_dir;
|
||||
pte_t *pg_table;
|
||||
unsigned long address, size;
|
||||
unsigned long next_pgtable, bootmem_end;
|
||||
unsigned long next_pgtable;
|
||||
unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
|
||||
int i;
|
||||
|
||||
|
|
@ -57,7 +57,6 @@ void __init paging_init(void)
|
|||
panic("%s: Failed to allocate %lu bytes align=0x%lx\n",
|
||||
__func__, size, PAGE_SIZE);
|
||||
|
||||
bootmem_end = (next_pgtable + size + PAGE_SIZE) & PAGE_MASK;
|
||||
pg_dir += PAGE_OFFSET >> PGDIR_SHIFT;
|
||||
|
||||
address = PAGE_OFFSET;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue