lkml.org 
[lkml]   [2020]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 04/20] powerpc/32s: Make bat_addrs[] static
    Date
    This table is used only locally. Declare it static.

    Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
    ---
    arch/powerpc/mm/book3s32/mmu.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/powerpc/mm/book3s32/mmu.c b/arch/powerpc/mm/book3s32/mmu.c
    index a59e7ec98180..eceb55c12fe9 100644
    --- a/arch/powerpc/mm/book3s32/mmu.c
    +++ b/arch/powerpc/mm/book3s32/mmu.c
    @@ -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;
    --
    2.25.0
    \
     
     \ /
      Last update: 2020-10-22 08:30    [W:3.003 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site