arm64: mm: Make show_pte() a static function
authorWill Deacon <will.deacon@arm.com>
Wed, 3 Apr 2019 12:36:54 +0000 (13:36 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 3 Apr 2019 12:36:54 +0000 (13:36 +0100)
show_pte() doesn't have any external callers, so make it static.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/system_misc.h
arch/arm64/mm/fault.c

index 32693f34f43172ba25e419b98292609c4bc11373..fca95424e873522a7d8c4c8eca6b69b59f7ec2e5 100644 (file)
@@ -41,7 +41,6 @@ void hook_debug_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
                           int sig, int code, const char *name);
 
 struct mm_struct;
-extern void show_pte(unsigned long addr);
 extern void __show_regs(struct pt_regs *);
 
 extern void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd);
index 1a7e92ab69ebbff7defeaf4eca01c8094c6ac6e9..4f343e603925df510ecb84d2a47e674521982ddb 100644 (file)
@@ -148,7 +148,7 @@ static inline bool is_ttbr1_addr(unsigned long addr)
 /*
  * Dump out the page tables associated with 'addr' in the currently active mm.
  */
-void show_pte(unsigned long addr)
+static void show_pte(unsigned long addr)
 {
        struct mm_struct *mm;
        pgd_t *pgdp;