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>
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)"