Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5329354pxu; Wed, 21 Oct 2020 22:05:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6uZTQtrWyqckLDXM9WjgQOXBrQnoUyOwoLxZclucupdBzBsiorTSgKZ5ucb0vQ7UQULNx X-Received: by 2002:aa7:de06:: with SMTP id h6mr652570edv.31.1603343140937; Wed, 21 Oct 2020 22:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603343140; cv=none; d=google.com; s=arc-20160816; b=cpwjJBEJ9KAg0eRCZhHly5n3wpetxX+ds9OpqIQUKSoFC1iK8lWilEaIUKdVHt1GG4 9XC00sTD1G8BtyPOtUYBgDE7K19rgqfmaNiEWznnQ19XLwcVc30SJ5LZHn3VnjRdo4u9 NuET89KQwua0OdGrUrSOiqzbYuGppf00US+wIOI3JBECyQVu6G8DkejIT2Xil3rpow7S hj71QXKeVUkue07XR1nNlEPWzTGbZR7kEO1PGLnt1ECLD4dE473zbXyfP2CuIyE1fe70 zF6g8NCMfGW9Fhb5qMwGIGosY8XpDLW/p2xwM/jNvl4Lu6Run+IbmQWrxnCYWmyv8Z9j DSbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=HmkebcxyGiVGoRXrdw+Zgt+ZxEQag5x2+oh6UW2OF0A=; b=d2yea+YqnT7PHHPf4e4+AN+58adk4aQrBLbRMpI2DeAaxlSO0711/LO7tok8LjQ+xW BvoJ/Dvy9LRnurzRc5eDH0EACbf5hTLlHJ82VvC3LQ1b7DKZwCDrhFzPvzBpI5Oo1mWp PODKpkwbrTFAEyDkZkwKN9c+hcaBGKw+d1+IZMCbzq1/h+vh8v7gXbXFZ0YErbb/Jk+W llF7C8ZFTn575dHOd4dx1z2gHVvV2M6QJfR3b0SWqR97pCVGj22AXq5NalZB3NjHRsjB 0Nu51IrYTE94w26siEpD51BME32UKtaO2oeVeQSXfF84+R+zUno0gPXsKltZS3yre/dA K6iw== ARC-Authentication-Results: i=1; mx.google.com; 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 o7si205410ejr.747.2020.10.21.22.05.19; Wed, 21 Oct 2020 22:05:40 -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; 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 S2502516AbgJUP21 (ORCPT + 99 others); Wed, 21 Oct 2020 11:28:27 -0400 Received: from smtprelay0031.hostedemail.com ([216.40.44.31]:37200 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2502468AbgJUP20 (ORCPT ); Wed, 21 Oct 2020 11:28:26 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 94D72100E7B43; Wed, 21 Oct 2020 15:28:25 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,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:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3653:3865:3866:3867:3874:4321:5007:10004:10400:10848:11232:11658:11914:12295:12297:12740:12760:12895:13069:13311:13357:13439:14181:14659:21080:21627:21660:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: fear64_59177f727249 X-Filterd-Recvd-Size: 1373 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Wed, 21 Oct 2020 15:28:24 +0000 (UTC) Message-ID: <26647abf8cf14595a0dd22f10ec1c32e3dc2a8c0.camel@perches.com> Subject: Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning From: Joe Perches To: Aditya Srivastava Cc: linux-kernel@vger.kernel.org, lukas.bulwahn@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, dwaipayanray1@gmail.com Date: Wed, 21 Oct 2020 08:28:23 -0700 In-Reply-To: References: <20201021150120.29920-1-yashsri421@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-10-21 at 08:18 -0700, Joe Perches wrote: > I might add that check to the line below where > the repeated words are checked against long [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3062,6 +3062,7 @@ sub process { > > next if ($first ne $second); > next if ($first eq 'long'); > + next if ($first =~ /^$Hex$/; oops. with a close parenthesis added of course...