summaryrefslogtreecommitdiff
path: root/src/include/elog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/elog.h')
-rw-r--r--src/include/elog.h4
1 files changed, 3 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 */