summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/ras.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/ras.h')
-rw-r--r--kernel/include/linux/ras.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/include/linux/ras.h b/kernel/include/linux/ras.h
new file mode 100644
index 000000000..2aceeafd6
--- /dev/null
+++ b/kernel/include/linux/ras.h
@@ -0,0 +1,14 @@
+#ifndef __RAS_H__
+#define __RAS_H__
+
+#ifdef CONFIG_DEBUG_FS
+int ras_userspace_consumers(void);
+void ras_debugfs_init(void);
+int ras_add_daemon_trace(void);
+#else
+static inline int ras_userspace_consumers(void) { return 0; }
+static inline void ras_debugfs_init(void) { return; }
+static inline int ras_add_daemon_trace(void) { return 0; }
+#endif
+
+#endif