summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/debug_pagetables.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/debug_pagetables.c')
-rw-r--r--arch/x86/mm/debug_pagetables.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/debug_pagetables.c b/arch/x86/mm/debug_pagetables.c
index 51a6f92da2bf..225fe2f0bfec 100644
--- a/arch/x86/mm/debug_pagetables.c
+++ b/arch/x86/mm/debug_pagetables.c
@@ -1,4 +1,5 @@
#include <linux/debugfs.h>
+#include <linux/efi.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <asm/pgtable.h>
@@ -73,13 +74,12 @@ static const struct file_operations ptdump_curusr_fops = {
#endif
#if defined(CONFIG_EFI) && defined(CONFIG_X86_64)
-extern pgd_t *efi_pgd;
static struct dentry *pe_efi;
static int ptdump_show_efi(struct seq_file *m, void *v)
{
- if (efi_pgd)
- ptdump_walk_pgd_level_debugfs(m, efi_pgd, false);
+ if (efi_mm.pgd)
+ ptdump_walk_pgd_level_debugfs(m, efi_mm.pgd, false);
return 0;
}