diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-03-22 19:34:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 20:44:15 -0400 |
commit | b0781216e7bff68aca2fbcd275b4db7531d1e22f (patch) | |
tree | 04767f9d01945aab963bbc3b4ca90589ff9a854e /scripts/checkpatch.pl | |
parent | 984b203a7237d8d32090b48113c18eb8f824a2be (diff) |
scripts/checkpatch.pl: reset rpt_cleaners warnings
If you run checkpatch against multiple patches, and one of them has a
whitespace issue which can be helped via a script (rpt_cleaners), you will
see the same NOTE over and over for all subsequent patches. It makes it
seem like those patches also have whitespace problems when in reality,
there's only one or two bad apples.
So reset rpt_cleaners back to 0 after we've issued the note so that it
only shows up near the patch with the actual problems.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index dfd9b310a1cc..19abef2b4dd5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2944,6 +2944,7 @@ sub process { | |||
2944 | if ($rpt_cleaners) { | 2944 | if ($rpt_cleaners) { |
2945 | print "NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or\n"; | 2945 | print "NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or\n"; |
2946 | print " scripts/cleanfile\n\n"; | 2946 | print " scripts/cleanfile\n\n"; |
2947 | $rpt_cleaners = 0; | ||
2947 | } | 2948 | } |
2948 | } | 2949 | } |
2949 | 2950 | ||