Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp93992imj; Thu, 14 Feb 2019 16:05:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IZeSJU5Hh3fH+dT+qlMluFinMPoy7Hjp1xNhI3FqVeScgv2uiMHdAflrOJn6gP+TJyZYQW0 X-Received: by 2002:a17:902:2ba8:: with SMTP id l37mr7025702plb.243.1550189127372; Thu, 14 Feb 2019 16:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189127; cv=none; d=google.com; s=arc-20160816; b=kAhEQORS52yHoe9EoLnZ/kPHv05BCEFiIGlDfNNSTADN7TA7FdVg0rwxTIsyJJx4Kf deAjnC1Cp8CcJoAeb+IeubDvW80u/LJXCxmRN2/04ZtE8E3EmzGYqlsb55wOcuwJAw6X iiie1PuwCUS4ELmyBYS0gyC+QwCT+Gd5jvNXinW77EPgnetgBl+gbEoUr03yGkXjXNqY XAf30I718Dck12jeDsGmJr8OPimL/Vxx+KZODIa3uvXsC/mSk0hujnMkOxOOcKXDfoXx sRZd+GNTUbxP2PaIpE0hbsf0j5RaS2/dDnaqIW0pSNXpzGexnG+I+DCkZAzyEDLdoaEL z5wQ== 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:to:from:subject:message-id; bh=S64pf+IJ3wBVf/5bm9BFc+6Hu17WzayIMGzI7qck5Tk=; b=X9bw+ynMpGCe1Pqgwktqy1qiQ8SSn+z/ur39tSBJZq5sH4P2jIjNZoFRoVcNKC3S1v vQQjpPDgX3k1f1GDppqoFl3+UCcfyuh5qojQSu5C2YLUDXHWFPIi67hZAKYoz2VZAd0u fDwMTpaYN/+cJR/pOLGKNjbJ+ROsygBUwBUIHu43f3tecdqoTohPTIivVXK1DrolG8uz rVu9dJJjspmwZjTaWmE/2iZ0CLUE3zJynqklHQ1fbIO53kub0iWJSuAXTR5M1C97F/1o qP3xw29YwHO3ijDW26lSuTpKNJsP5CHOPi7U+lr/ryZX6NicZjvS6LAlSIofUceYuU01 pnkQ== 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 g10si4057022plb.375.2019.02.14.16.05.12; Thu, 14 Feb 2019 16:05:27 -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 S2439311AbfBNOo7 (ORCPT + 99 others); Thu, 14 Feb 2019 09:44:59 -0500 Received: from smtprelay0085.hostedemail.com ([216.40.44.85]:51643 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2439303AbfBNOo7 (ORCPT ); Thu, 14 Feb 2019 09:44:59 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 717A5100E86C0; Thu, 14 Feb 2019 14:44:57 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 40,2.5,0,,d41d8cd98f00b204,joe@perches.com,:::::,RULES_HIT:41:355:379:599:800:960:982:988:989:1260:1277:1311:1313:1314:1345:1359:1381:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3870:3871:3872:3873:3874:4321:5007:7576:7903:9545:10011:10400:10848:10967:11026:11232:11473:11658:11914:12043:12555:12663:12740:12760:12895:13069:13311:13357:13439:14096:14097:14180:14181:14659:14721:21080:21324:21451:21611:21627:30054:30090:30091,0,RBL:47.151.153.53:@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:neutral,Custom_rules:0:1:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: milk93_4846db7892745 X-Filterd-Recvd-Size: 2268 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Thu, 14 Feb 2019 14:44:56 +0000 (UTC) Message-ID: <4a6844c41d187d113e0c54dd156ba91c2635c361.camel@perches.com> Subject: Re: report: scripts: checkpatch: Spell Checker Does Not Run with '-f' From: Joe Perches To: federico.vaga@cern.ch, Andy Whitcroft , linux-kernel@vger.kernel.org Date: Thu, 14 Feb 2019 06:44:55 -0800 In-Reply-To: <3030138.e1gdHPWlgN@pcbe13614> References: <3030138.e1gdHPWlgN@pcbe13614> 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 Thu, 2019-02-14 at 13:48 +0100, Federico Vaga wrote: > Hello, > > Recently I have produce a couple of patches but I get different warnings if I > run checkpatch on the file (-f) or if I run it of a patch file. In particular, > the problem I found is with the spell checker which seems to run only when the > option '-f' is not used. I am wandering if there are other similar cases. > > I do not know Perl, so I cannot investigate more, but I have a practical > example. I have this simple patch applied on my tree that introduces a spell > error: If you want spelling fixes on files you have to use --strict > > From: Federico Vaga > Date: Thu, 14 Feb 2019 13:29:39 +0100 > Subject: [PATCH] script: checkpatch: buggy(?) output with -f option > > Signed-off-by: Federico Vaga > --- > drivers/i2c/busses/i2c-ocores.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c > index b32d67c..f4deb90 100644 > --- a/drivers/i2c/busses/i2c-ocores.c > +++ b/drivers/i2c/busses/i2c-ocores.c > @@ -301,7 +301,7 @@ static int ocores_poll_wait(struct ocores_i2c *i2c) > /* on going transfer */ > mask = OCI2C_STAT_TIP; > /* > - * We wait for the data to be transferred (8bit), > + * We wait for the data to be transfered (8bit), > * then we start polling on the ACK/NACK bit > */ > udelay((8 * 1000) / i2c->bus_clock_khz);