aboutsummaryrefslogtreecommitdiff
path: root/src/include/elog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/elog.h')
-rw-r--r--src/include/elog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/elog.h b/src/include/elog.h
index 0f6a811bbd..0776c36b7d 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -250,7 +250,14 @@ static inline int elog_smbios_write_type15(unsigned long *current,
extern u32 gsmi_exec(u8 command, u32 *param);
+#if IS_ENABLED(CONFIG_ELOG_BOOT_COUNT)
u32 boot_count_read(void);
+#else
+static inline u32 boot_count_read(void)
+{
+ return 0;
+}
+#endif
u32 boot_count_increment(void);
/*