[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e5f29ca9b6067fff9ea68cb25e15906659cd51ad.camel@perches.com>
Date: Fri, 19 Apr 2019 04:14:27 -0700
From: Joe Perches <joe@...ches.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Douglas Anderson <dianders@...omium.org>,
Daniel Thompson <daniel.thompson@...aro.org>,
Jason Wessel <jason.wessel@...driver.com>,
Christophe Leroy <christophe.leroy@....fr>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Kees Cook <keescook@...omium.org>,
kgdb-bugreport@...ts.sourceforge.net,
Johannes Weiner <hannes@...xchg.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Gustavo A. R. Silva" <gustavo@...eddedor.com>,
Nicholas Mc Guire <hofrat@...dl.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] kdb: Get rid of broken attempt to print CCVERSION in
kdb summary
On Fri, 2019-04-19 at 12:28 +0900, Masahiro Yamada wrote:
> Hi Joe,
>
> Can you detect redundant Cc: by checkpatch?
>
> Please see below in details.
> Thanks.
Yes, but I'm not sure why it's useful or necessary.
git send-email using some scripts elides duplicate email addresses
---
scripts/checkpatch.pl | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1c421ac42b07..bedec83cb797 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2688,6 +2688,19 @@ sub process {
$signatures{$sig_nospace} = 1;
}
+# Check for a cc: line with another signature -by: by the same author
+ if ($sig_nospace =~ /^cc:/) {
+ my $sig_email = substr($sig_nospace, 3);
+ foreach my $sig (sort keys %signatures) {
+ next if ($sig =~ /^cc:/);
+ $sig =~ s/^[^:]+://;
+ if ($sig eq $sig_email) {
+ WARN("BAD_SIGN_OFF",
+ "Unnecessary CC: as there is another signature with the same name/email address\n" . $herecurr);
+ }
+ }
+ }
+
# Check Co-developed-by: immediately followed by Signed-off-by: with same name and email
if ($sign_off =~ /^co-developed-by:$/i) {
if ($email eq $author) {
Powered by blists - more mailing lists