<p>Daniel Kurtz would like Daniel Kurtz to <strong>review</strong> this change.</p><p><a href="https://review.coreboot.org/26526">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">elog: Allow calling boot_count_read() without CONFIG_ELOG_BOOT_COUNT<br><br>Have boot_count_read() just return 0 if CONFIG_ELOG_BOOT_COUNT is not<br>enabled.<br><br>BUG=b:79865267<br>TEST=firmware_EventLog<br><br>Change-Id: I70f16226371324dea37b3f36f85c2037e324ef31<br>Signed-off-by: Daniel Kurtz <djkurtz@chromium.org><br>---<br>M src/include/elog.h<br>1 file changed, 7 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/26526/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/include/elog.h b/src/include/elog.h</span><br><span>index 0f6a811..0776c36 100644</span><br><span>--- a/src/include/elog.h</span><br><span>+++ b/src/include/elog.h</span><br><span>@@ -250,7 +250,14 @@</span><br><span> </span><br><span> extern u32 gsmi_exec(u8 command, u32 *param);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#if IS_ENABLED(CONFIG_ELOG_BOOT_COUNT)</span><br><span> u32 boot_count_read(void);</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+static inline u32 boot_count_read(void)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+  return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span> u32 boot_count_increment(void);</span><br><span> </span><br><span> /*</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26526">change 26526</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/26526"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I70f16226371324dea37b3f36f85c2037e324ef31 </div>
<div style="display:none"> Gerrit-Change-Number: 26526 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Daniel Kurtz <djkurtz@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Daniel Kurtz <djkurtz@chromium.org> </div>