diff options
| author | Mark Brown <broonie@linaro.org> | 2013-10-07 14:51:17 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-10-07 14:51:17 +0100 |
| commit | 77445a14d6a3a1f920e3b031603541fc807f5f9b (patch) | |
| tree | 17a6a75a83fc602345969b29fdf7199afe2df526 /scripts | |
| parent | 57841439b62e3ddb5ee50e765aa50330dde612d0 (diff) | |
| parent | 702a4879ec337463f858c8ab467482cce260bf18 (diff) | |
Merge remote-tracking branch 'spi/topic/bitbang' into HEAD
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 47016c304c84..66cad506b8a2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3975,8 +3975,8 @@ sub string_find_replace { # check for new externs in .h files. if ($realfile =~ /\.h$/ && $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) { - if (WARN("AVOID_EXTERNS", - "extern prototypes should be avoided in .h files\n" . $herecurr) && + if (CHK("AVOID_EXTERNS", + "extern prototypes should be avoided in .h files\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/(.*)\bextern\b\s*(.*)/$1$2/; } |
