aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/debugfs.h
diff options
context:
space:
mode:
authorGravatar Michael Ellerman <mpe@ellerman.id.au> 2017-02-10 12:04:56 +1100
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2017-04-11 07:46:03 +1000
commit7644d5819cf8956d799a0a0e5dc75f5a29889bd5 (patch)
treea57da650f65a4c8d03feaed2bb055f94f19d19b4 /arch/powerpc/include/asm/debugfs.h
parentpowerpc/powernv: Require MMU_NOTIFIER to fix NPU build (diff)
downloadlinux-7644d5819cf8956d799a0a0e5dc75f5a29889bd5.tar.gz
linux-7644d5819cf8956d799a0a0e5dc75f5a29889bd5.tar.bz2
linux-7644d5819cf8956d799a0a0e5dc75f5a29889bd5.zip
powerpc: Create asm/debugfs.h and move powerpc_debugfs_root there
powerpc_debugfs_root is the dentry representing the root of the "powerpc" directory tree in debugfs. Currently it sits in asm/debug.h, a long with some other things that have "debug" in the name, but are otherwise unrelated. Pull it out into a separate header, which also includes linux/debugfs.h, and convert all the users to include debugfs.h instead of debug.h. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/debugfs.h')
-rw-r--r--arch/powerpc/include/asm/debugfs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/debugfs.h b/arch/powerpc/include/asm/debugfs.h
new file mode 100644
index 000000000000..4f3b39f3e3d2
--- /dev/null
+++ b/arch/powerpc/include/asm/debugfs.h
@@ -0,0 +1,17 @@
+#ifndef _ASM_POWERPC_DEBUGFS_H
+#define _ASM_POWERPC_DEBUGFS_H
+
+/*
+ * Copyright 2017, Michael Ellerman, IBM Corporation.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#include <linux/debugfs.h>
+
+extern struct dentry *powerpc_debugfs_root;
+
+#endif /* _ASM_POWERPC_DEBUGFS_H */