summaryrefslogtreecommitdiff
path: root/drivers/ras/debugfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ras/debugfs.h')
-rw-r--r--drivers/ras/debugfs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ras/debugfs.h b/drivers/ras/debugfs.h
index c07443b462ad..5a2f48439258 100644
--- a/drivers/ras/debugfs.h
+++ b/drivers/ras/debugfs.h
@@ -4,6 +4,10 @@
#include <linux/debugfs.h>
-extern struct dentry *ras_debugfs_dir;
+#if IS_ENABLED(CONFIG_DEBUG_FS)
+struct dentry *ras_get_debugfs_root(void);
+#else
+static inline struct dentry *ras_get_debugfs_root(void) { return NULL; }
+#endif /* DEBUG_FS */
#endif /* __RAS_DEBUGFS_H__ */