Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp79227yba; Fri, 19 Apr 2019 20:58:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDCnKmwDMHBR9K/LCyOuSfLgJmTh28HjcrPuYecp/Tu1BqvURrtGwbsuXmfFHSmI/0iwW0 X-Received: by 2002:a17:902:e70c:: with SMTP id co12mr7512174plb.339.1555732724977; Fri, 19 Apr 2019 20:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555732724; cv=none; d=google.com; s=arc-20160816; b=xA5QLAKEt/fLokefUVozIh7hS3LSVzf7K+35i8YQVs2589YIAb8BNoa1V2ytsRON6I vvgwbazuE+69iyJM+O0Pt9d9Zi7hqLTk5B2m8rvjdQ/51aOQxa+Me2FKGoumyxOslkYM BFgEn32qtXzuTq2mdWezluNIXlQriuYd+nJc30wgTU+TpJZDiLmulz43XRwX+OIjzc9f wFyITigmTzca95ZGZ3GeFAYy8X0JtFigEzCM4dZojv7bSHLj8AhWGgaUDRyclPwVvn5u lE64zXDnLVbiJ1RMk95l6YF6twzzmojGX6j0wFDsI1+IFlt2+rKLNRcsSGSsaMDWOgf0 DiQg== 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=PwOyerEXFd46thoEoiI8hbT6JfUtQQx7c+VlM6sYk64=; b=bgYCOraEy4Hbdl6cf9xMw4OB/chj9GxBXbtua92rlylYiQWeyJ+FBT+K798wJ5fe9D 7yrXCKbOKNefKXqULbl53N68YmLfb0zgu7t/m1emEjItNNdP1vINuo8yu+xUkfni0vF6 F2pZpwkUhau67OTSgQV3YwImygqYK6HXMs+fpZe9YoR03m/0rWOgpJFmBm2mhLkQ1DT7 FJcVwBLhnJnb05GMbVvlTONepima5TvSbZiUIlye6fx2A+Rwe8GLZU0ZAIIsxYVHMA7m ZgzBViL94NHfSEniuulFT8LhOZPI1E9h4EmEmnhNUB4H1+bPf7YZvL0OuZvqiHmZanZ2 VHIg== 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 q13si7024952pfh.162.2019.04.19.20.58.28; Fri, 19 Apr 2019 20:58:44 -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 S1726953AbfDTD5b (ORCPT + 99 others); Fri, 19 Apr 2019 23:57:31 -0400 Received: from smtprelay0155.hostedemail.com ([216.40.44.155]:45450 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbfDTD5b (ORCPT ); Fri, 19 Apr 2019 23:57:31 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id E1C88182CED28; Sat, 20 Apr 2019 03:57:29 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1801:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3354:3622:3653:3865:3866:3867:3868:3870:3871:3872:3873:4321:4605:5007:6119:6120:6742:7576:7875:7901:7903:9121:10004:10400:10848:10967:11026:11232:11233:11473:11658:11914:12043:12262:12438:12555:12663:12679:12740:12760:12895:12986:13439:14093:14096:14097:14181:14659:14721:21080:21365:21433:21451:21627:21819:30003:30022:30029:30054:30055:30060:30064:30070:30090: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:none,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: blade53_5ddfc643d6a28 X-Filterd-Recvd-Size: 4767 Received: from XPS-9350 (unknown [162.249.177.49]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Sat, 20 Apr 2019 03:57:24 +0000 (UTC) Message-ID: Subject: Re: [PATCH] kdb: Get rid of broken attempt to print CCVERSION in kdb summary From: Joe Perches To: Andrew Morton Cc: Masahiro Yamada , 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 Date: Fri, 19 Apr 2019 20:57:05 -0700 In-Reply-To: <20190419135830.0e3273e223fb83947e5adb0d@linux-foundation.org> References: <20190323015227.245455-1-dianders@chromium.org> <20190416163034.3e642818ebf27ed6891c1981@linux-foundation.org> <20190418160651.40cb6a11186a6c6028e9d20d@linux-foundation.org> <20190419135830.0e3273e223fb83947e5adb0d@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 13:58 -0700, Andrew Morton wrote: > On Fri, 19 Apr 2019 04:14:27 -0700 Joe Perches wrote: > > On Fri, 2019-04-19 at 12:28 +0900, Masahiro Yamada wrote: > > > Can you detect redundant Cc: by checkpatch? [] > > I'm not sure why it's useful or necessary. [] > The issue here is redundant Cc: lines in the changelog. CC: entries have very little actual value in a changelog anyway. > > --- a/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) { > > Thanks. But my checkpatch.pl is different from yours. > > q:/usr/src/25> grep "immediately followed by" scripts/checkpatch.pl > q:/usr/src/25> I almost always write patches against -next $ git grep "immediately followed by" next-20190418 -- scripts/checkpatch.pl next-20190418:scripts/checkpatch.pl:# Check Co-developed-by: immediately followed by Signed-off-by: with same name and email next-20190418:scripts/checkpatch.pl: "Co-developed-by: must be immediately followed by Signed-off-by:\n" . "$here\n" . $rawline); next-20190418:scripts/checkpatch.pl: "Co-developed-by: must be immediately followed by Signed-off-by:\n" . "$here\n" . $rawline . "\n" .$rawlines[$linenr]); You seem to be missing commit 6c5d24eef7be7adfcb608f2852ab69b58935133b Author: Sean Christopherson Date: Fri Mar 22 14:11:37 2019 -0700 checkpatch: Warn on improper usage of Co-developed-by The purpose of Co-developed-by: is to give attribution to authors who aren't already attributed by the From: tag, i.e. who aren't the nominal patch author. Because Co-developed-by: is essentially a variation of From:, it must be accompanied by a Signed-off-by: of the associated co-author. To ease the burden of determining whether or not co-authors have signed off, Co-developed-by and Signed-off-by: must be explicitly paired, i.e. on consecutive lines for a given co-author. Suggested-by: Joe Perches Signed-off-by: Sean Christopherson Signed-off-by: Jonathan Corbet