hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm64/mm/ptdump_debugfs.c
....@@ -1,5 +1,6 @@
11 // SPDX-License-Identifier: GPL-2.0
22 #include <linux/debugfs.h>
3
+#include <linux/memory_hotplug.h>
34 #include <linux/seq_file.h>
45
56 #include <asm/ptdump.h>
....@@ -7,15 +8,15 @@
78 static int ptdump_show(struct seq_file *m, void *v)
89 {
910 struct ptdump_info *info = m->private;
10
- ptdump_walk_pgd(m, info);
11
+
12
+ get_online_mems();
13
+ ptdump_walk(m, info);
14
+ put_online_mems();
1115 return 0;
1216 }
1317 DEFINE_SHOW_ATTRIBUTE(ptdump);
1418
15
-int ptdump_debugfs_register(struct ptdump_info *info, const char *name)
19
+void ptdump_debugfs_register(struct ptdump_info *info, const char *name)
1620 {
17
- struct dentry *pe;
18
- pe = debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);
19
- return pe ? 0 : -ENOMEM;
20
-
21
+ debugfs_create_file(name, 0400, NULL, info, &ptdump_fops);
2122 }