Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp105100ybg; Mon, 27 Jul 2020 17:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdNMbWqims+MuWN5sbQ5MnJrnKuC0KZleHV39WE60m0L6oFqIce/GOGL7eVEV955WzNqqS X-Received: by 2002:a17:906:5912:: with SMTP id h18mr24554936ejq.259.1595894638845; Mon, 27 Jul 2020 17:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595894638; cv=none; d=google.com; s=arc-20160816; b=zngJkjmSD+GiE+iWjXpDdISX3R6jUhrFVg1QE7ePLiG3swxEVWbYc4z+4YHa3SJXvi 2DtT4DLPBLbIMPVRX27rlS7EFBb8Xb3VnZpxHSOkkK7KgZrDrWlUYgKUXMhzsnrHpLRZ /F566i6NJMjKDcYvtAE1wywWvxHqAht+RYiDyB8vZqVQGJ6WpmHNl06IX3ZeTOeHTRgV TBfAiHLEy8cEffa066rSTuSM60GgL0z7TDNyRS2pP+J3jsnTlHoCPcJ9ltBiGfyY+Vqk yQlmADaC9bngM1FFFcMygF+8lGi7QxuKQFa+3kEZaRMPirjXTVUusjtLFwh0h6VgvmIG Ldgw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bqzMdiPLEFKP5bfRsIjeQSwN8431aYJ/2kMLDMmcsxc=; b=eysXoRQ6aZRbyj4XtEfIqVE+5UHF/EVTI0TEhWVFmyUu06nyPAafltaoa7WwfPM/VK vQHev0B8XJu6bZk5lZ2FzaQi0b1n7EHMoK0FMRQSZnoP4jD2mqKR3fShGVl0huzpSosm aBPx04BPmOaLl4VGTVWmdOi20bp7jT0zcUPh6Yodj6QzynwKT+b5aNsG9rFcFzB0TzrQ 7SSMWWc4MOuV9AHJ0vQN6MT3Mr8JjJf0cXT+vjQtq5abeeqFVknZRyyjEJ+79u2KOIqq VrkviUzdWVJFymB6+ptrLRCukVIjXMw8Csq0p6w/1zLLaqlmwid+P5cw2cTt/pcGRGs1 2+LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Cd4cAP3h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si7334318edf.308.2020.07.27.17.03.34; Mon, 27 Jul 2020 17:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Cd4cAP3h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbgG1ADK (ORCPT + 99 others); Mon, 27 Jul 2020 20:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbgG1ADK (ORCPT ); Mon, 27 Jul 2020 20:03:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2247EC061794 for ; Mon, 27 Jul 2020 17:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=bqzMdiPLEFKP5bfRsIjeQSwN8431aYJ/2kMLDMmcsxc=; b=Cd4cAP3hjP4gld3KlmBfDKmXF/ VkrRKTHigqOfyB5N+pvfppZjJRK4WsrA/7v84rp75l2/FunfHoRfg5mofkb170WaehH/mL557ErzC wIHojNJRbjaUgxhTk/0rOJf/D1dePhyHt4Jbj5fLvN6/cREPGtaav1h46qGf5/TE79bopJfKOboX/ Lj462KKuw6cUwkqh6gy9Zsv+fdFIU9fPAAOX+WmN+7pqN+C5g9d4uFYUtMIC6PgNlRUBPdCjRJNoW gHY7ApWu5SGctQwjsSU8yDu8FlgdYgHP5BYrsEAc7vJkL4LfWgdqKLnp5eUeltfYkClQABveUch90 77Yy/y1w==; Received: from [2601:1c0:6280:3f0::19c2] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0D5H-0002Ef-C3; Tue, 28 Jul 2020 00:03:08 +0000 Subject: Re: [PATCH] checkpatch: Add test for repeated words To: Joe Perches , Andrew Morton , Andy Whitcroft Cc: LKML References: <20200726162902.Horde.TCqHYaODbkzEpM-rFzDd8A2@messagerie.si.c-s.fr> <4e505c35-8428-89bb-7f9b-bc819382c3cd@infradead.org> <16aa5f86f2f899a9156305ead4b7042449278eea.camel@perches.com> From: Randy Dunlap Message-ID: Date: Mon, 27 Jul 2020 17:03:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/27/20 12:33 AM, Joe Perches wrote: > Try to avoid adding repeated words either on the > same line or consecutive comment lines in a block > > e.g.: > > duplicated word in comment block > > /* > * this is a comment block where the last word of the previous > * previous line is also the first word of the next line > */ > > and simple duplication > > /* test this this again */ > > Inspired-by: Randy Dunlap (rdunlap@infradead.org> > Signed-off-by: Joe Perches Thanks for adding this check, Joe. > --- > scripts/checkpatch.pl | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) -- ~Randy