Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2184368yba; Fri, 19 Apr 2019 14:00:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyATzXgSDqp/DlrvzKzS55kvh8MolurthT9UXdMiP8v/LcLt3DxZbeGap/JX5HRRYahUzjT X-Received: by 2002:aa7:800e:: with SMTP id j14mr5977575pfi.157.1555707657391; Fri, 19 Apr 2019 14:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555707657; cv=none; d=google.com; s=arc-20160816; b=C0CnAQz+8Rcv8YwFlADV0fw2ru1/D37MuyJXycG+EJHrcywCIdO21UnSsJPnmGOGpg Y0rKzAujK8wBY6zXUfx+U+CtBwC4Kf+NvWJw5BR6uGAuJpiJwQmzvkZ5/gppp0OsdWRF 0ZopRJ2VjEzzRuEN3KGrd8zs6sYse4KFYEuOkYNUIW45IWbYXdw4u8h92J7aLNDRIZpz x+xoiPdxGTcdB1/0DyopimIdTgzvw72VryO3YnfxeM+lvxVIlUbtt41IkLpuvLUzSy7x /J3hFZH7tab7LizkvJn8BipalNyJal/2FCwJI8pMXM+eTU6Z1ItsUHko6eK6F7MgwJqK t4Pg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=LH98zLFovk6GtCWBK6kNONYNv0hvHptM7iWrwowd5UU=; b=hL8Qnk/SjKulhbdeMvWFA+cYUvfjVtx7TYdgEkekgixssEnnLDSkybd9iik8CHliuc s6aDWB7cr392hMvu4XTgU2e3YyBnGrQttar2/td4w95i7JTL36P7EkTtx99iuI81VzRc z9Jivbw1/exd5ban3e4+6g9Z80JHW4kPV4u70NlAU+mF7F0bbfNjGmt7r7KBjAIwj2Gd jCg6YRLy4U9aQseMoYR8JgXPWgpPkAb2+ApPg5eUE8YfrJj1OpX5pPo3dc03M2IQIWkV IeLY+lYZj3atYM4zsRvB/LuWyBUGn38qapqS28SSVEz1dKIfvqqVtGU291llippKQkfO enYg== 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 w8si5958877plq.149.2019.04.19.14.00.42; Fri, 19 Apr 2019 14:00:57 -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 S1727477AbfDSU6d (ORCPT + 99 others); Fri, 19 Apr 2019 16:58:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33034 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbfDSU6d (ORCPT ); Fri, 19 Apr 2019 16:58:33 -0400 Received: from localhost.localdomain (c-73-223-200-170.hsd1.ca.comcast.net [73.223.200.170]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CBA772851; Fri, 19 Apr 2019 20:58:31 +0000 (UTC) Date: Fri, 19 Apr 2019 13:58:30 -0700 From: Andrew Morton To: Joe Perches 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 Subject: Re: [PATCH] kdb: Get rid of broken attempt to print CCVERSION in kdb summary Message-Id: <20190419135830.0e3273e223fb83947e5adb0d@linux-foundation.org> In-Reply-To: References: <20190323015227.245455-1-dianders@chromium.org> <20190416163034.3e642818ebf27ed6891c1981@linux-foundation.org> <20190418160651.40cb6a11186a6c6028e9d20d@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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, 19 Apr 2019 04:14:27 -0700 Joe Perches wrote: > 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 Other (all?) MUAs will avoid addressing an email to a recipient more than once. The issue here is redundant Cc: lines in the changelog. > --- 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) { Thanks. But my checkpatch.pl is different from yours. q:/usr/src/25> grep "immediately followed by" scripts/checkpatch.pl q:/usr/src/25>