aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/elog.h4
-rw-r--r--src/include/pc80/mc146818rtc.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/include/elog.h b/src/include/elog.h
index f9b5d53941..eb8352dd3c 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -162,7 +162,9 @@ extern u32 gsmi_exec(u8 command, u32 *param);
#if CONFIG_ELOG_BOOT_COUNT
u32 boot_count_read(void);
u32 boot_count_increment(void);
-#endif
+#else
+static inline u32 boot_count_read(void) { return 0; }
+#endif /* CONFIG_ELOG_BOOT_COUNT */
#endif /* !CONFIG_ELOG */
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h
index fd403087a6..cf4a9514c9 100644
--- a/src/include/pc80/mc146818rtc.h
+++ b/src/include/pc80/mc146818rtc.h
@@ -220,6 +220,8 @@ static inline enum cb_err get_option(void *dest __attribute__((unused)),
#define CMOS_POST_EXTRA_DEV_PATH 0x01
void cmos_post_log(void);
+#else
+static inline void cmos_post_log(void) {}
#endif /* CONFIG_CMOS_POST */
#endif /* PC80_MC146818RTC_H */