mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 09:36:45 +07:00
0607512d0a
With CONFIG_RAS disabled, we get two harmless warnings about unused functions: include/linux/ras.h:37:13: error: 'log_arm_hw_error' defined but not used [-Werror=unused-function] static void log_arm_hw_error(struct cper_sec_proc_arm *err) { return; } include/linux/ras.h:33:13: error: 'log_non_standard_event' defined but not used [-Werror=unused-function] static void log_non_standard_event(const guid_t *sec_type, Clearly these are meant to be 'inline', like the other stubs in the same header. Fixes:297b64c743
("ras: acpi / apei: generate trace event for unrecognized CPER section") Fixes:e9279e83ad
("trace, ras: add ARM processor error trace event") Acked-by: Borislav Petkov <bp@suse.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Will Deacon <will.deacon@arm.com>
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
#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
|
|
void __init cec_init(void);
|
|
int __init parse_cec_param(char *str);
|
|
int cec_add_elem(u64 pfn);
|
|
#else
|
|
static inline void __init cec_init(void) { }
|
|
static inline int cec_add_elem(u64 pfn) { return -ENODEV; }
|
|
#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__ */
|