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>
This commit is contained in:
@@ -41,7 +41,6 @@ void hook_debug_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
|
|||||||
int sig, int code, const char *name);
|
int sig, int code, const char *name);
|
||||||
|
|
||||||
struct mm_struct;
|
struct mm_struct;
|
||||||
extern void show_pte(unsigned long addr);
|
|
||||||
extern void __show_regs(struct pt_regs *);
|
extern void __show_regs(struct pt_regs *);
|
||||||
|
|
||||||
extern void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd);
|
extern void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd);
|
||||||
|
|||||||
@@ -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.
|
* 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;
|
struct mm_struct *mm;
|
||||||
pgd_t *pgdp;
|
pgd_t *pgdp;
|
||||||
|
|||||||
Reference in New Issue
Block a user