]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
m68k: coldfire: remove unused variable in MMU code
authorGreg Ungerer <gerg@kernel.org>
Tue, 12 Sep 2023 13:31:39 +0000 (23:31 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 22 Oct 2023 22:22:22 +0000 (08:22 +1000)
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>
arch/m68k/mm/mcfmmu.c

index a6efaa7cacde274e9496f9db47bca5b4efc447c1..9a6fa342e872e32ca9566ebfe247531c808f49d6 100644 (file)
@@ -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;