[coreboot-gerrit] New patch to review for coreboot: elog: fix default elog_add_event_raw() declaration

Aaron Durbin (adurbin@chromium.org) gerrit at coreboot.org
Fri Nov 4 17:22:11 CET 2016


Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17232

-gerrit

commit 74c13b4d55d834d8ecd7f118f6aa901fac361bf2
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Fri Nov 4 11:17:54 2016 -0500

    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 at chromium.org>
---
 src/include/elog.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/include/elog.h b/src/include/elog.h
index 504c52e..e4350f5 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; }



More information about the coreboot-gerrit mailing list