]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai-test-patchset: Ignore checkpatch's CONST_STRUCT master
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 6 Oct 2017 21:48:07 +0000 (14:48 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Fri, 6 Oct 2017 23:59:36 +0000 (16:59 -0700)
checkpatch.pl can generate a ton of false positive warnings when used
with CONST_STRUCT, so ignore those warnings to make its output useful
again.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
aiaiai-test-patchset

index 0ecbac68e9fdf0d0a2def4545c98c22888c7f223..a17d1241ef4451b4a1d5645791f4fcaef7fe7d8f 100755 (executable)
@@ -122,7 +122,7 @@ test_checkpatch()
        local n=0 patch_cnt
        local tmp_out="$tmpdir/checkpatch.tmp_out"
        local tmp_mbox="$tmpdir/checkpatch.tmp_mbox"
-       local opts="--no-tree -q --show-types --ignore PREFER_PACKED,PREFER_ALIGNED"
+       local opts="--no-tree -q --show-types --ignore PREFER_PACKED,PREFER_ALIGNED,CONST_STRUCT"
 
        patch_cnt="$(formail -s echo 1 < "$mbox" | wc -l)"