mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:30:52 +07:00
9554bfe403
The CEC code has its claws in a couple of routines in mce/core.c. Convert it to just register itself on the normal MCE notifier chain. [ bp: Make cec_add_elem() and cec_init() static. ] Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Tested-by: Tony Luck <tony.luck@intel.com> Link: https://lkml.kernel.org/r/20200214222720.13168-3-tony.luck@intel.com
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __RAS_H__
|
|
#define __RAS_H__
|
|
|
|
#include <asm/errno.h>
|
|
#include <linux/uuid.h>
|
|
#include <linux/cper.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) { }
|
|
static inline int ras_add_daemon_trace(void) { return 0; }
|
|
#endif
|
|
|
|
#ifdef CONFIG_RAS_CEC
|
|
int __init parse_cec_param(char *str);
|
|
#endif
|
|
|
|
#ifdef CONFIG_RAS
|
|
void log_non_standard_event(const guid_t *sec_type,
|
|
const guid_t *fru_id, const char *fru_text,
|
|
const u8 sev, const u8 *err, const u32 len);
|
|
void log_arm_hw_error(struct cper_sec_proc_arm *err);
|
|
#else
|
|
static inline void
|
|
log_non_standard_event(const guid_t *sec_type,
|
|
const guid_t *fru_id, const char *fru_text,
|
|
const u8 sev, const u8 *err, const u32 len)
|
|
{ return; }
|
|
static inline void
|
|
log_arm_hw_error(struct cper_sec_proc_arm *err) { return; }
|
|
#endif
|
|
|
|
#endif /* __RAS_H__ */
|