This is an automated email from Gerrit.

"Tomas Vanek <[email protected]>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/9457

-- gerrit

commit 8d491e1bbe47cbb4b3c50c0242655cdb81f71b62
Author: Tomas Vanek <[email protected]>
Date:   Sun Feb 8 17:59:44 2026 +0100

    checkpatch: make CODE_INDENT test TAB size aware
    
    The test for too many spaces after TAB uses fixed regular
    expression with 8 spaces. OpenOCD coding style requires TAB size 4
    
    Generate the regex according to --tab-size value.
    
    Change-Id: Iddafa880b1782847c2903cabed9b6a0402e316d8
    Signed-off-by: Tomas Vanek <[email protected]>

diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index 9232c83a37..86e71529f0 100755
--- a/tools/scripts/checkpatch.pl
+++ b/tools/scripts/checkpatch.pl
@@ -3877,8 +3877,9 @@ sub process {
 
 # at the beginning of a line any tabs must come first and anything
 # more than $tabsize must use tabs.
+               my $re_too_many_sp = "^\\+\\s* {" . $tabsize . "}\\s*";
                if ($rawline =~ /^\+\s* \t\s*\S/ ||
-                   $rawline =~ /^\+\s*        \s*/) {
+                   $rawline =~ $re_too_many_sp) {
                        my $herevet = "$here\n" . cat_vet($rawline) . "\n";
                        $rpt_cleaners = 1;
                        if (ERROR("CODE_INDENT",

-- 

Reply via email to