1 #ifndef __RAS_H__ 2 #define __RAS_H__ 3 4 #include <asm/errno.h> 5 #include <linux/uuid.h> 6 #include <linux/cper.h> 7 8 #ifdef CONFIG_DEBUG_FS 9 int ras_userspace_consumers(void); 10 void ras_debugfs_init(void); 11 int ras_add_daemon_trace(void); 12 #else 13 static inline int ras_userspace_consumers(void) { return 0; } 14 static inline void ras_debugfs_init(void) { } 15 static inline int ras_add_daemon_trace(void) { return 0; } 16 #endif 17 18 #ifdef CONFIG_RAS_CEC 19 void __init cec_init(void); 20 int __init parse_cec_param(char *str); 21 int cec_add_elem(u64 pfn); 22 #else 23 static inline void __init cec_init(void) { } 24 static inline int cec_add_elem(u64 pfn) { return -ENODEV; } 25 #endif 26 27 #ifdef CONFIG_RAS 28 void log_non_standard_event(const guid_t *sec_type, 29 const guid_t *fru_id, const char *fru_text, 30 const u8 sev, const u8 *err, const u32 len); 31 void log_arm_hw_error(struct cper_sec_proc_arm *err); 32 #else 33 static inline void 34 log_non_standard_event(const guid_t *sec_type, 35 const guid_t *fru_id, const char *fru_text, 36 const u8 sev, const u8 *err, const u32 len) 37 { return; } 38 static inline void 39 log_arm_hw_error(struct cper_sec_proc_arm *err) { return; } 40 #endif 41 42 #endif /* __RAS_H__ */ 43