Unverified Commit bf732017 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

Merge Pull Request from: @zhoukaiqi 
 
bugfix to patch: [RAS: Report ARM processor information to userspace](https://gitee.com/openeuler/kernel/pulls/4727)

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

https://gitee.com/openeuler/kernel/issues/I951H1 
 
Link:https://gitee.com/openeuler/kernel/pulls/4834

 

Reviewed-by: default avatarLuo Shengwei <luoshengwei@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents fbcd4a30 52453d7f
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