summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorTeresa Gámez <t.gamez@phytec.de>2012-07-24 13:44:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-25 08:34:59 +0200
commit4c6122a2f6805bae0ded59345b8ff89723c7b811 (patch)
tree2858246da5df36f4f331ebcc48a644fec2105053 /scripts/checkpatch.pl
parent0742542f8755b41db65be8767dd8b674854ea33f (diff)
downloadbarebox-4c6122a2f6805bae0ded59345b8ff89723c7b811.tar.gz
barebox-4c6122a2f6805bae0ded59345b8ff89723c7b811.tar.xz
scripts/checkpatch.pl: reset rpt_cleaners warnings
When running checkpatch against multiple patches and one of them has a whitespace issue, all following patches will contain the same note, even if they are ok. This patch is taken from the linux kernel: scripts/checkpatch.pl: reset rpt_cleaners warnings b0781216e7bff68aca2fbcd275b4db7531d1e22f Written by Mike Frysinger <vapier@gentoo.org> Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 151c53a464..0d94f982fa 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2934,6 +2934,7 @@ sub process {
if ($rpt_cleaners) {
print "NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or\n";
print " scripts/cleanfile\n\n";
+ $rpt_cleaners = 0;
}
}