Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp915032imu; Sat, 15 Dec 2018 09:46:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/W3df6wUDsuTN+8yEzgApfDQg0pe498/3tJt1wKw37WIBi8/gys/VnCRoxd2NisxkNN1zW/ X-Received: by 2002:a63:c10f:: with SMTP id w15mr6696367pgf.199.1544895982446; Sat, 15 Dec 2018 09:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544895982; cv=none; d=google.com; s=arc-20160816; b=sfqMjUB69C5dmxRT+xeQVQZK8JDrvtMA8CnzYaRYQAHPE63qe+xX+ipyfno0qw0j3K 9T+ey/ofD/4VplYdB//+9DqXwLvDcxjD55LMBB0/V5UEHgnsSPzTljVyuAvw5pnOe+z5 tbTkhWc8YaMw+dwqPoD0t4GvdgzUHVkIiTgCpCuIK8EIAxX9+1+N8riuNZPG66kyuexm PLn+4dB5jY0EzvHy7raRWMqPUSTBDZQMbHR/v8L8LZmZwqysGXfL0fwKEM8m7moOwBTI rd6VrmxbxrgX9Ku86YMGbdCEMxutwpZNzbCCnlgXiqxbYwmJpEdCVYdlAlQWtZcvMAQ1 OGZw== 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=2xqU4W0ISgx2Z5LRPtVyWaQWysmMZqWN6kKE4e6K2xM=; b=OwOCRpwBoK9wcXAZqfByiLSs+st64XhpDxfEygU3wysEDtE7z+72/Jsicg2xkcHoaQ FjlxUiJFGMacRug8B5mR1PvMjdAg4BQ3jC2nhDRCSrNOv+i4jfWS+QjzAjePzv+Pg3/L Gm5D1HoXHvgYjoJtBPTf3LL7DQjMH7q8mOeNMbPYSTk3XaRrb6cA6RrGgibzoefMjkws Zxmg1qGWb1dGL1kcP3RSF1th1vV1RGU4SCBWHE2Jmr+meNkpAFYJe+znZJF46QvdJN1g 8UhlbgDrgoyMgkq7hEMYlcd3AVbF68HBu2fMygFjfFUDlxTC3Tbu9iqH1BUbX1pYSxjh aBFw== 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 p11si6583939plk.191.2018.12.15.09.46.06; Sat, 15 Dec 2018 09:46:22 -0800 (PST) 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 S1728612AbeLORpF (ORCPT + 99 others); Sat, 15 Dec 2018 12:45:05 -0500 Received: from smtprelay0167.hostedemail.com ([216.40.44.167]:41393 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726641AbeLORpE (ORCPT ); Sat, 15 Dec 2018 12:45:04 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 52FDF40E8; Sat, 15 Dec 2018 17:45:03 +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:1541:1593:1594:1711:1730:1747:1777:1792:2197:2199:2393:2553:2559:2562:2828:2899:3138:3139:3140:3141:3142:3352:3622:3653:3865:3867:3868:3871:3872:4321:5007:7903:10004:10400:10848:10967:11026:11232:11473:11658:11914:12043:12438:12555:12663:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21221:21324:21326:21451:21627:30054:30070:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.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:0:0,LFtime:34,LUA_SUMMARY:none X-HE-Tag: lock08_833657f341953 X-Filterd-Recvd-Size: 2657 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Sat, 15 Dec 2018 17:45:01 +0000 (UTC) Message-ID: <9d20d06ea2b92e6b66f0a2dc58f8b191fd7778ce.camel@perches.com> Subject: Re: [PATCH 2/2] checkpatch: add Co-developed-by to signature tags From: Joe Perches To: Andrew Morton , Jorge Ramirez-Ortiz Cc: gregkh@linuxfoundation.org, himanshujha199640@gmail.com, apw@canonical.com, linux-kernel@vger.kernel.org, niklas.cassel@linaro.org, corbet@lwn.net, linux-doc@vger.kernel.org Date: Sat, 15 Dec 2018 09:45:00 -0800 In-Reply-To: <20181214121634.1157f2302c8ba1825fc03ad2@linux-foundation.org> References: <1544808928-20002-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1544808928-20002-3-git-send-email-jorge.ramirez-ortiz@linaro.org> <20181214121634.1157f2302c8ba1825fc03ad2@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, 2018-12-14 at 12:16 -0800, Andrew Morton wrote: > On Fri, 14 Dec 2018 18:35:28 +0100 Jorge Ramirez-Ortiz wrote: > > > As per Documentation/process/submitting-patches, Co-developed-by is a > > valid signature. > > > > I'm with Joe - I find this tag kinda useless and duplicative. But whatever. > > But as the documentation says, Co-developed-by must be accompanied by a > Signed-off-by:. It would be helpful if checkpatch were to detect a > failure to do this. perhaps --- scripts/checkpatch.pl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 93e84c9504a1..056d4b47ffaf 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2673,7 +2673,20 @@ sub process { WARN("BAD_SIGN_OFF", "Duplicate signature\n" . $herecurr); } else { - $signatures{$sig_nospace} = 1; + $signatures{$sig_nospace} = $herecurr; + } + } + +# Check for "Co-developed-by:" uses without equivalent "Signed-off-by:" +# $signatures keys are all lower case without spaces + if ($rawline =~ /^---$/) { + foreach my $sig (keys %signatures) { + next if ($sig !~ /^co-developed-by:(.*)/); + my $signer = $1; + if (!defined $signatures{"signed-off-by:$signer"}) { + WARN("CODEVELOPED_WITHOUT_SIGNOFF", + "Co-developed-by: used without Signed-off-by: by same person\n" . $signatures{$sig}); + } } }