summaryrefslogtreecommitdiffstats
path: root/drivers/ras/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ras/debugfs.c')
-rw-r--r--drivers/ras/debugfs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/ras/debugfs.c b/drivers/ras/debugfs.c
index ffb973c32..42afd3de6 100644
--- a/drivers/ras/debugfs.c
+++ b/drivers/ras/debugfs.c
@@ -3,10 +3,16 @@
#include <linux/ras.h>
#include "debugfs.h"
-struct dentry *ras_debugfs_dir;
+static struct dentry *ras_debugfs_dir;
static atomic_t trace_count = ATOMIC_INIT(0);
+struct dentry *ras_get_debugfs_root(void)
+{
+ return ras_debugfs_dir;
+}
+EXPORT_SYMBOL_GPL(ras_get_debugfs_root);
+
int ras_userspace_consumers(void)
{
return atomic_read(&trace_count);