diff options
author | Benoît Ganne <bganne@kalray.eu> | 2015-06-18 11:59:06 -0700 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-06-29 20:27:02 +0300 |
commit | f2bb51d7d6ffc0e3ccd229d4f9cc05760a150266 (patch) | |
tree | cf79343cc8cfcd846f61e76951a00ab6f06c3539 /scripts | |
parent | 0274087af20ff1f7ed1e9c5f6de3ff12798e6a9c (diff) |
checkpatch: ignore CamelCase on scanf SCNxxx
Signed-off-by: Benoît Ganne <bganne@kalray.eu>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index cee734a..00d30b2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4259,6 +4259,9 @@ sub process { $var !~ /\bCU_/ && $var !~ /\bPRI[diux]32/ && $var !~ /\bPRI[diux]64/ && + $var !~ /\bSCN[diux]8/ && + $var !~ /\bSCN[diux]32/ && + $var !~ /\bSCN[diux]64/ && $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) { while ($var =~ m{($Ident)}g) { my $word = $1; |