diff options
| author | 2013-10-07 14:51:17 +0100 | |
|---|---|---|
| committer | 2013-10-07 14:51:17 +0100 | |
| commit | 77445a14d6a3a1f920e3b031603541fc807f5f9b (patch) | |
| tree | 17a6a75a83fc602345969b29fdf7199afe2df526 /scripts | |
| parent | spi: efm32: Don't call kfree() after spi_master_put() (diff) | |
| parent | spi: bitbang: Let spi_bitbang_start() take a reference to master (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/; } |
