Chen, Gong | d963cd9 | 2014-06-11 14:02:20 -0700 | [diff] [blame] | 1 | #ifndef __RAS_H__ |
| 2 | #define __RAS_H__ |
| 3 | |
Borislav Petkov | 011d826 | 2017-03-27 11:33:02 +0200 | [diff] [blame] | 4 | #include <asm/errno.h> |
| 5 | |
Chen, Gong | d963cd9 | 2014-06-11 14:02:20 -0700 | [diff] [blame] | 6 | #ifdef CONFIG_DEBUG_FS |
| 7 | int ras_userspace_consumers(void); |
| 8 | void ras_debugfs_init(void); |
| 9 | int ras_add_daemon_trace(void); |
| 10 | #else |
| 11 | static inline int ras_userspace_consumers(void) { return 0; } |
Borislav Petkov | 011d826 | 2017-03-27 11:33:02 +0200 | [diff] [blame] | 12 | static inline void ras_debugfs_init(void) { } |
Chen, Gong | d963cd9 | 2014-06-11 14:02:20 -0700 | [diff] [blame] | 13 | static inline int ras_add_daemon_trace(void) { return 0; } |
| 14 | #endif |
| 15 | |
Borislav Petkov | 011d826 | 2017-03-27 11:33:02 +0200 | [diff] [blame] | 16 | #ifdef CONFIG_RAS_CEC |
| 17 | void __init cec_init(void); |
| 18 | int __init parse_cec_param(char *str); |
| 19 | int cec_add_elem(u64 pfn); |
| 20 | #else |
| 21 | static inline void __init cec_init(void) { } |
| 22 | static inline int cec_add_elem(u64 pfn) { return -ENODEV; } |
Chen, Gong | d963cd9 | 2014-06-11 14:02:20 -0700 | [diff] [blame] | 23 | #endif |
Borislav Petkov | 011d826 | 2017-03-27 11:33:02 +0200 | [diff] [blame] | 24 | |
| 25 | #endif /* __RAS_H__ */ |