OSDN Git Service

powerpc/32s: drop Hash_end
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 26 Apr 2019 16:36:36 +0000 (16:36 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:26 +0000 (01:20 +1000)
Hash_end has never been used, drop it.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/mmu_decl.h

index 165529c..03265de 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <mm/mmu_decl.h>
 
-struct hash_pte *Hash, *Hash_end;
+struct hash_pte *Hash;
 unsigned long Hash_size, Hash_mask;
 unsigned long _SDR1;
 static unsigned int hash_mb, hash_mb2;
@@ -345,8 +345,6 @@ void __init MMU_init_hw(void)
                      __func__, Hash_size, Hash_size);
        _SDR1 = __pa(Hash) | SDR1_LOW_BITS;
 
-       Hash_end = (struct hash_pte *) ((unsigned long)Hash + Hash_size);
-
        printk("Total memory = %lldMB; using %ldkB for hash table (at %p)\n",
               (unsigned long long)(total_memory >> 20), Hash_size >> 10, Hash);
 
index 31fce39..7b8833d 100644 (file)
@@ -104,7 +104,7 @@ extern int __map_without_bats;
 extern unsigned int rtas_data, rtas_size;
 
 struct hash_pte;
-extern struct hash_pte *Hash, *Hash_end;
+extern struct hash_pte *Hash;
 extern unsigned long Hash_size, Hash_mask;
 extern u8 early_hash[];