<p>osmith <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/25964">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lint: checkpatch.pl: break exclude loop early<br><br>When running the linter on a patch with lots of files changed, and lots<br>of exclude files, this makes a big difference. On my machine, running an<br>osmo-iuh patch with 1580 files changed, and the high amount of asn1c<br>related excludes, the time for linting is reduced from 50s to 25s.<br><br>This should be acceptable, since typically we change only few files.<br><br>Change-Id: I6fb41dec25ecc1f2df7242ae041a8685a696c3fd<br>---<br>M lint/checkpatch/checkpatch.pl<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/lint/checkpatch/checkpatch.pl b/lint/checkpatch/checkpatch.pl</span><br><span>index 06e6e36..e31a61f 100755</span><br><span>--- a/lint/checkpatch/checkpatch.pl</span><br><span>+++ b/lint/checkpatch/checkpatch.pl</span><br><span>@@ -2813,6 +2813,7 @@</span><br><span>                 foreach (@exclude) {</span><br><span>                         if ($realfile =~ m@$_@) {</span><br><span>                            $skipme = 1;</span><br><span style="color: hsl(120, 100%, 40%);">+                          last; # break out of the loop</span><br><span>                        }</span><br><span>            }</span><br><span>            if ($skipme) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/25964">change 25964</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/osmo-ci/+/25964"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6fb41dec25ecc1f2df7242ae041a8685a696c3fd </div>
<div style="display:none"> Gerrit-Change-Number: 25964 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>