diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-11-04 11:17:54 -0500 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2016-11-06 18:13:30 +0100 |
commit | d9b1050dfba7cc97b95ca9dcc72ae6172d8a1735 (patch) | |
tree | 44b29eefcda8aa1a689bf057b84683da090d43bc /src/include/elog.h | |
parent | e0ed9025cf7453212e5e5a845e34e0b7ecfa3eb9 (diff) | |
download | coreboot-d9b1050dfba7cc97b95ca9dcc72ae6172d8a1735.tar.gz coreboot-d9b1050dfba7cc97b95ca9dcc72ae6172d8a1735.tar.bz2 coreboot-d9b1050dfba7cc97b95ca9dcc72ae6172d8a1735.zip |
elog: fix default elog_add_event_raw() declaration
When CONFIG_ELOG isn't used default empty inline functions are
provided, however the elog_add_event_raw() had the wrong type
signature. Fix that.
BUG=chrome-os-partner:59395
Change-Id: Iaee68440bbafc1e91c88a7b03e283fc3e72de0a3
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/17232
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/include/elog.h')
-rw-r--r-- | src/include/elog.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/elog.h b/src/include/elog.h index 504c52e9a23f..e4350f55c754 100644 --- a/src/include/elog.h +++ b/src/include/elog.h @@ -158,7 +158,8 @@ extern int elog_smbios_write_type15(unsigned long *current, int handle); /* Stubs to help avoid littering sources with #if CONFIG_ELOG */ static inline int elog_init(void) { return -1; } static inline int elog_clear(void) { return -1; } -static inline int elog_add_event_raw(void) { return 0; } +static inline int elog_add_event_raw(u8 event_type, void *data, + u8 data_size) { return 0; } static inline int elog_add_event(u8 event_type) { return 0; } static inline int elog_add_event_byte(u8 event_type, u8 data) { return 0; } static inline int elog_add_event_word(u8 event_type, u16 data) { return 0; } |