Message ID | 1516294820-4980-2-git-send-email-odpbot@yandex.ru |
---|---|
State | New |
Headers | show |
Series | [v2,1/2] checkpatch.pl: do not warn on odp aligh macros | expand |
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 16316b928..d366f257d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3411,6 +3411,7 @@ sub process { # function brace can't be on same line, except for #defines of do while, # or if closed on same line if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and + !($line=~/ODP_/) and !($line=~/\#\s*define.*do\s\{/) and !($line=~/}/)) { if (ERROR("OPEN_BRACE", "open brace '{' following function declarations go on the next line\n" . $herecurr) &&