OSDN Git Service

powerpc/mm: Make some symbols static that can be
authorYueHaibing <yuehaibing@huawei.com>
Sat, 4 May 2019 10:24:27 +0000 (18:24 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 May 2019 02:08:10 +0000 (12:08 +1000)
Noticed by sparse.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/book3s64/hash_native.c
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/book3s64/radix_pgtable.c

index aaa28fd..47caecd 100644 (file)
@@ -45,7 +45,7 @@
 #define HPTE_LOCK_BIT (56+3)
 #endif
 
-DEFINE_RAW_SPINLOCK(native_tlbie_lock);
+static DEFINE_RAW_SPINLOCK(native_tlbie_lock);
 
 static inline void tlbiel_hash_set_isa206(unsigned int set, unsigned int is)
 {
index 919a861..1ff4518 100644 (file)
@@ -985,7 +985,7 @@ void __init hash__early_init_devtree(void)
        htab_scan_page_sizes();
 }
 
-struct hash_mm_context init_hash_mm_context;
+static struct hash_mm_context init_hash_mm_context;
 void __init hash__early_init_mmu(void)
 {
 #ifndef CONFIG_PPC_64K_PAGES
index c9bcf42..c929d31 100644 (file)
@@ -323,7 +323,7 @@ static int __meminit create_physical_mapping(unsigned long start,
        return 0;
 }
 
-void __init radix_init_pgtable(void)
+static void __init radix_init_pgtable(void)
 {
        unsigned long rts_field;
        struct memblock_region *reg;