Commit 0607512d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Will Deacon

ras: mark stub functions as 'inline'

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: 297b64c7 ("ras: acpi / apei: generate trace event for unrecognized CPER section")
Fixes: e9279e83 ("trace, ras: add ARM processor error trace event")
Acked-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 3edb1dd1
...@@ -30,11 +30,13 @@ void log_non_standard_event(const guid_t *sec_type, ...@@ -30,11 +30,13 @@ void log_non_standard_event(const guid_t *sec_type,
const u8 sev, const u8 *err, const u32 len); const u8 sev, const u8 *err, const u32 len);
void log_arm_hw_error(struct cper_sec_proc_arm *err); void log_arm_hw_error(struct cper_sec_proc_arm *err);
#else #else
static void log_non_standard_event(const guid_t *sec_type, static inline void
const guid_t *fru_id, const char *fru_text, log_non_standard_event(const guid_t *sec_type,
const u8 sev, const u8 *err, const guid_t *fru_id, const char *fru_text,
const u32 len) { return; } const u8 sev, const u8 *err, const u32 len)
static void log_arm_hw_error(struct cper_sec_proc_arm *err) { return; } { return; }
static inline void
log_arm_hw_error(struct cper_sec_proc_arm *err) { return; }
#endif #endif
#endif /* __RAS_H__ */ #endif /* __RAS_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment