diff options
author | Will Deacon <will.deacon@arm.com> | 2019-04-03 13:36:54 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-04-03 13:36:54 +0100 |
commit | 7048a5973eb1d6a747b516334c052d92d8ed7ab4 (patch) | |
tree | 679fd79e6ee10256e29f6856eeb1408d301596a6 /arch/arm64 | |
parent | 0f1bf7e39822476b2f921435cf990f67a61f5f92 (diff) | |
download | lwn-7048a5973eb1d6a747b516334c052d92d8ed7ab4.tar.gz lwn-7048a5973eb1d6a747b516334c052d92d8ed7ab4.zip |
arm64: mm: Make show_pte() a static function
show_pte() doesn't have any external callers, so make it static.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/system_misc.h | 1 | ||||
-rw-r--r-- | arch/arm64/mm/fault.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/system_misc.h b/arch/arm64/include/asm/system_misc.h index 32693f34f431..fca95424e873 100644 --- a/arch/arm64/include/asm/system_misc.h +++ b/arch/arm64/include/asm/system_misc.h @@ -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); diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 1a7e92ab69eb..4f343e603925 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c @@ -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; |