Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp121757imj; Thu, 14 Feb 2019 16:46:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IbPha8B/s9hlrW6aQq0F/rvvTzLI2GYYntLtGqgDxw/0X9F62FEr1jPrgKLT1r77bYOV4wx X-Received: by 2002:a17:902:b118:: with SMTP id q24mr7263798plr.209.1550191579716; Thu, 14 Feb 2019 16:46:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550191579; cv=none; d=google.com; s=arc-20160816; b=0d17+aUpWSsGPbKyWQQvmbiIUGqKBYKVgXdJtcP5x21OfVAl43wEyYfw0S2mcTZZ2h sUbMSsgLIIilagXZNh2oq04xaFIPqTeOhOxsfLm7mILDMDDY9S0aMq6mEtaQp8gG69ZY QGVWrWpXVMnplGNZJqs2Wf40L98OdfMVYVhCZfxJI1lujZaA9vID1PQgCyb9cvcGkRJJ 83Ji/kx44w++sFGrpTl36AxZUkef+LwoHTJb91SbizATgNvlwrXBHZinYo+0WG9DsojV e34lScwu6WUDF3OZ3jWLBPtY5bIUp1wKlAU+nbHiu4PndPOXfdYdG5Bo0gbQ66Ki0Fiy 0TfQ== 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=RDwC5s8mPaRU5LR56+SPGWCszoyt+CYm2F9aLSKl0Q4=; b=B19Qo/IlGzU7p8BUXTCe9ydWWgB2tgulxdZK3wtGnIIEHHkWXIChQb/fZw9eiQ/0c8 RjVy/S4s33SjruFK/ki5pF9joTuRdUq+s9AkKRAo4F302tBkOFLDao6AgS3QDicB0izY ifxzighLTpKa8PoqgjxBu4qn/9wzY/Gp5gpBnyJ8tSpI96ubdIe+AZudIfyLDsVsrXGM JX5JQlLORrKYeitzCa7YmziYBtfgXmi2i0kC0F+paPhdZG46lScTVX0PFtF6iVuEVZEp bQG4E6ZiRfbY1hr67G0sZDFWCfkIGbl7tT8Yj3jX2L3yexcYX5JIy5Ib2KctR7lc4bU0 86lA== 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 g186si3740245pgc.320.2019.02.14.16.46.03; Thu, 14 Feb 2019 16:46:19 -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 S2407531AbfBNPTl (ORCPT + 99 others); Thu, 14 Feb 2019 10:19:41 -0500 Received: from smtprelay0243.hostedemail.com ([216.40.44.243]:42020 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404736AbfBNPTk (ORCPT ); Thu, 14 Feb 2019 10:19:40 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 61F0D180A7774; Thu, 14 Feb 2019 15:19:39 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::,RULES_HIT:41:355:379:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2551:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:4605:5007:6119:7903:9010:9121:10004:10400:10848:11232:11233:11658:11914:12043:12050:12262:12438:12555:12663:12679:12740:12760:12895:13069:13311:13357:13439:14096:14097:14180:14181:14659:14721:21080:21365:21611: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:28,LUA_SUMMARY:none X-HE-Tag: burst64_5426cbf2ebd24 X-Filterd-Recvd-Size: 2433 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Thu, 14 Feb 2019 15:19:38 +0000 (UTC) Message-ID: Subject: Re: report: scripts: checkpatch: Spell Checker Does Not Run with '-f' From: Joe Perches To: federico.vaga@cern.ch Cc: Andy Whitcroft , linux-kernel@vger.kernel.org Date: Thu, 14 Feb 2019 07:19:36 -0800 In-Reply-To: <2899994.xJFnvJAAA5@pcbe13614> References: <3030138.e1gdHPWlgN@pcbe13614> <4a6844c41d187d113e0c54dd156ba91c2635c361.camel@perches.com> <2899994.xJFnvJAAA5@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 16:03 +0100, Federico Vaga wrote: > On Thursday, February 14, 2019 3:44:55 PM CET Joe Perches wrote: > > 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 > > Thanks > > Is it a design choice to have different checks enabled with '-f'? Yes. It was for a minimization of churn. commit 66b47b4a9dad00e45c049d79966de9a3a1f4d337 Author: Kees Cook Date: Mon Oct 13 15:51:57 2014 -0700 checkpatch: look for common misspellings Check for misspellings, based on Debian's lintian list. Several false positives were removed, and several additional words added that were common in the kernel: backword backwords invalide valide recieves singed unsinged While going back and fixing existing spelling mistakes isn't a high priority, it'd be nice to try to catch them before they hit the tree.