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

From: Borislav Petkov
Date: Mon Feb 27 2017 - 17:52:53 EST


From: Borislav Petkov <bp@xxxxxxx>

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

Signed-off-by: Borislav Petkov <bp@xxxxxxx>
---
arch/x86/kernel/kdebugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/kdebugfs.c b/arch/x86/kernel/kdebugfs.c
index c3d354d1c719..b4debd51dc4b 100644
--- a/arch/x86/kernel/kdebugfs.c
+++ b/arch/x86/kernel/kdebugfs.c
@@ -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;

--
2.11.0