powerpc/32s: Make bat_addrs[] static
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 22 Oct 2020 06:29:29 +0000 (06:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Dec 2020 05:45:08 +0000 (16:45 +1100)
This table is used only locally. Declare it static.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/054fec0c139fc4c0a306360b360784733c0a6e65.1603348103.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/book3s32/mmu.c

index 23f60e97196ebe5d0fef0181a8dc2ad5f45872e5..78c13ca540d4ff384780df842d48ef606c5a3e28 100644 (file)
@@ -40,7 +40,7 @@ static unsigned int hash_mb, hash_mb2;
 
 struct ppc_bat BATS[8][2];     /* 8 pairs of IBAT, DBAT */
 
-struct batrange {              /* stores address ranges mapped by BATs */
+static struct batrange {       /* stores address ranges mapped by BATs */
        unsigned long start;
        unsigned long limit;
        phys_addr_t phys;