checkpatch: add commit-message field to ignore some check
[fw/openocd] / tools / scripts / checkpatch.pl
index 14876a114b27157b0653500b8eb481f2fd07abe4..12e7ab855d80083353423642e722e74fcb1588ff 100755 (executable)
@@ -3011,6 +3011,13 @@ sub process {
                        }
                }
 
+# OpenOCD specific: Begin: Extend list of checkpatch tests to ignore
+               if ($in_commit_log && $line =~ /^\s*Checkpatch-ignore:\s*(.*)/) {
+                       my @array = split(/[\s,]+/, $1);
+                       hash_save_array_words(\%ignore_type, \@array);
+               }
+# OpenOCD specific: End
+
 # Check for patch separator
                if ($line =~ /^---$/) {
                        $has_patch_separator = 1;