Skip to contentSkip to conversation

x86/kdebugfs: Move boot params hierarchy under (debugfs)/x86/

PATCH New Borislav Petkov 2 participants 2 messages Feb 27, 2017 – Mar 1, 2017 x86

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86/kdebugfs: Move boot params hierarchy under (debugfs)/x86/

From: Borislav Petkov <[email protected]>

... since this is all x86-specific data and it makes sense to have it under x86/ logically instead in the toplevel debugfs dir.

---
 arch/x86/kernel/kdebugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kdebugfs.c +1 -1
index c3d354d1c719..b4debd51dc4b 100644
@@ -159,7 +159,7 @@ static int __init boot_params_kdebugfs_init(void)
 	struct dentry *dbp, *version, *data;
 	int error = -ENOMEM;
 
-	dbp = debugfs_create_dir("boot_params", NULL);
+	dbp = debugfs_create_dir("boot_params", arch_debugfs_dir);
 	if (!dbp)
 		return -ENOMEM;
 
Signature · 1 line
2.11.0
#1 lore raw
x86/kdebugfs: Move boot params hierarchy under (debugfs)/x86/
Commit-ID:  10bce8410607a18eb3adf5d2739db8c8593e110d
Gitweb:     http://git.kernel.org/tip/10bce8410607a18eb3adf5d2739db8c8593e110d
Author:     Borislav Petkov <[email protected]>
AuthorDate: Mon, 27 Feb 2017 23:50:58 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 1 Mar 2017 09:57:02 +0100

x86/kdebugfs: Move boot params hierarchy under (debugfs)/x86/

... since this is all x86-specific data and it makes sense to have it under x86/ logically instead in the toplevel debugfs dir.

---
 arch/x86/kernel/kdebugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kdebugfs.c +1 -1
index bdb83e4..38b6458 100644
@@ -167,7 +167,7 @@ static int __init boot_params_kdebugfs_init(void)
 	struct dentry *dbp, *version, *data;
 	int error = -ENOMEM;
 
-	dbp = debugfs_create_dir("boot_params", NULL);
+	dbp = debugfs_create_dir("boot_params", arch_debugfs_dir);
 	if (!dbp)
 		return -ENOMEM;