Commit 52453d7f authored by zhoukaiqi's avatar zhoukaiqi
Browse files

ras: fix return type of log_arm_hw_error when not add CONFIG_RAS_ARM_EVENT_INFO config

kunpeng inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I951H1


CVE: NA

--------------------------------

While disable CONFIG_RAS and CONFIG_RAS_ARM_EVENT_INFO, log_arm_hw_error is
missing a return type, add "static inline void" as the return type.

Fixes: fa756368 ("RAS: Report ARM processor information to userspace")

Signed-off-by: default avatarzhoukaiqi <zhoukaiqi@huawei.com>

	modified:   include/linux/ras.h
parent fa756368
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ log_non_standard_event(const guid_t *sec_type,
static inline void
log_arm_hw_error(struct cper_sec_proc_arm *err, const u8 sev) { return; }
#else
static inline void
log_arm_hw_error(struct cper_sec_proc_arm *err) { return; }
#endif