* [PATCH] scripts/checkpatch.pl: reset rpt_cleaners warnings
@ 2012-07-24 11:44 Teresa Gámez
2012-07-25 6:35 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Teresa Gámez @ 2012-07-24 11:44 UTC (permalink / raw)
To: barebox
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>
---
scripts/checkpatch.pl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 151c53a..0d94f98 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;
}
}
--
1.7.0.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] scripts/checkpatch.pl: reset rpt_cleaners warnings
2012-07-24 11:44 [PATCH] scripts/checkpatch.pl: reset rpt_cleaners warnings Teresa Gámez
@ 2012-07-25 6:35 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-07-25 6:35 UTC (permalink / raw)
To: Teresa Gámez; +Cc: barebox
On Tue, Jul 24, 2012 at 01:44:42PM +0200, Teresa Gámez wrote:
> 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>
Applied, thanks
Sascha
> ---
> scripts/checkpatch.pl | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 151c53a..0d94f98 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;
> }
> }
>
> --
> 1.7.0.4
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-25 6:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-24 11:44 [PATCH] scripts/checkpatch.pl: reset rpt_cleaners warnings Teresa Gámez
2012-07-25 6:35 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox