<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21563">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved; Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">log2.h: Use uintXX_t instead of kernel specific types<br><br>Change-Id: Ieb872551bdbe514f2c77f9aeb2b9ee42f6573909<br>---<br>M include/osmocom/core/log2.h<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/log2.h b/include/osmocom/core/log2.h</span><br><span>index dfe9d37..035ce86 100644</span><br><span>--- a/include/osmocom/core/log2.h</span><br><span>+++ b/include/osmocom/core/log2.h</span><br><span>@@ -6,6 +6,7 @@</span><br><span>  */</span><br><span> </span><br><span> #pragma once</span><br><span style="color: hsl(120, 100%, 40%);">+#include <stdint.h></span><br><span> #define __always_inline               inline __attribute__((always_inline))</span><br><span> </span><br><span> /* from linux/asm-generic/bitops/{fls,fls64}.h - could later be enhanced</span><br><span>@@ -58,9 +59,9 @@</span><br><span>  * set bit if value is nonzero. The last (most significant) bit is</span><br><span>  * at position 64.</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-static __always_inline int fls64(__u64 x)</span><br><span style="color: hsl(120, 100%, 40%);">+static __always_inline int fls64(uint64_t x)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-  __u32 h = x >> 32;</span><br><span style="color: hsl(120, 100%, 40%);">+      uint32_t h = x >> 32;</span><br><span>  if (h)</span><br><span>               return fls(h) + 32;</span><br><span>  return fls(x);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21563">change 21563</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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://gerrit.osmocom.org/c/libosmocore/+/21563"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ieb872551bdbe514f2c77f9aeb2b9ee42f6573909 </div>
<div style="display:none"> Gerrit-Change-Number: 21563 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: Jenkins Builder </div>
<div style="display:none"> Gerrit-MessageType: merged </div>