Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2291306pja; Fri, 19 Apr 2019 11:23:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzA93PfYIewcvpzeNr0BODpbxkDTw4+2AZxcHfhDKVtbbMVKtxGcXUEnq2wmGatxBjqBXZ X-Received: by 2002:a05:6a00:11:: with SMTP id h17mr5404059pfk.232.1555698219698; Fri, 19 Apr 2019 11:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555698219; cv=none; d=google.com; s=arc-20160816; b=pKBMMyJqpcqmWr/4wuEjvuD7brAqhw0cwntNYayca4Sa87+eOvb/FYcaWo2lPxsDFL a90cCoAqVQUZ8g2w2URebE1xbBZcl0TIvKLIr45R/FHOAgpS34Hd4fqB005yaS8pSI/j 1dJ3L0nWTr8Vy9yuCcXiix4rbPhBvHvOq/zT+/L7j0Cy7JQiLM9VN5ckJPDF5TDz845Y 7t20AgxqcVsio/XtJEU32SOioKfSXurjdv5uL00JZOdi4a0jtp5cjmk3MIySClxxkdvD oDtY0uhkQJzxzzTedKldQT0t0UV2Vt6tyDNWJV6nDsIDt4vYHg46PBAVc1ZGwDrhANE8 gGHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=kGLsNcsz7gX+TzdphDEszKRlzSPXjGhmW2ToqZ0HMIA=; b=kXR7+dyrJSjCI3upEu8KeADA+C8iOycoCIDT4lXz6BZ3xEyFeLZ6skPLWiEWMgbFrb zcauYMCg4yUUuAjDL9e+SPwv3LvrMoJSBo+XPUO3g5EgFMdEXnamPk8uaou7VRGqStbS iHFMRMEqblMEqd1S6F/3EnysJvMdS1Yt1OnCVkSbAuySuedzJNyN8rwL/WvQgNcq5+3v elyq+qkDyi6ISVykupZEQqI0A29peHJNCHh7bzv9cfudnj4uTyJaNJISS9CSk2HImFGm KgyiHeiXaYgky83eFhXuqzUTArKNKmXw//GpAuTMWimxbyXbWWFZzWFK0Mi6RrcSmY1l KyAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si5966056pfm.170.2019.04.19.11.23.24; Fri, 19 Apr 2019 11:23:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbfDSSWg (ORCPT + 99 others); Fri, 19 Apr 2019 14:22:36 -0400 Received: from smtprelay0054.hostedemail.com ([216.40.44.54]:56034 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727386AbfDSSWf (ORCPT ); Fri, 19 Apr 2019 14:22:35 -0400 Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave04.hostedemail.com (Postfix) with ESMTP id A37AC1802F6BE for ; Fri, 19 Apr 2019 11:14:49 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 70219837F27D; Fri, 19 Apr 2019 11:14:49 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 30,2,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:599:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3653:3865:3868:3870:3871:3872:3873:4321:5007:6119:6120:6742:7901:7903:10010:10400:10848:11026:11232:11473:11658:11914:12219:12295:12555:12663:12740:12760:12895:12986:13069:13072:13311:13357:13439:14180:14181:14659:14721:14777:21060:21080:21433:21451:21627:21819:30003:30022:30029:30054:30055:30060:30070:30074:30091,0,RBL:162.249.177.49:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:1:0,LFtime:137,LUA_SUMMARY:none X-HE-Tag: juice57_468155df5e521 X-Filterd-Recvd-Size: 2906 Received: from XPS-9350 (unknown [162.249.177.49]) (Authenticated sender: joe@perches.com) by omf20.hostedemail.com (Postfix) with ESMTPA; Fri, 19 Apr 2019 11:14:44 +0000 (UTC) Message-ID: Subject: Re: [PATCH] kdb: Get rid of broken attempt to print CCVERSION in kdb summary From: Joe Perches To: Masahiro Yamada Cc: Douglas Anderson , Daniel Thompson , Jason Wessel , Christophe Leroy , "Peter Zijlstra (Intel)" , Kees Cook , kgdb-bugreport@lists.sourceforge.net, Johannes Weiner , Linux Kernel Mailing List , "Gustavo A. R. Silva" , Nicholas Mc Guire , Andrew Morton Date: Fri, 19 Apr 2019 04:14:27 -0700 In-Reply-To: References: <20190323015227.245455-1-dianders@chromium.org> <20190416163034.3e642818ebf27ed6891c1981@linux-foundation.org> <20190418160651.40cb6a11186a6c6028e9d20d@linux-foundation.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) {