Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp171626ybg; Sun, 26 Jul 2020 00:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziEpRfR1azV4mzV6FzAEioSeA/MuZy2VVgf0TxPhkCCnUxsQCyDwBq1njDQ/GfFrg3w075 X-Received: by 2002:a17:906:c04f:: with SMTP id bm15mr6701443ejb.207.1595748656050; Sun, 26 Jul 2020 00:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595748656; cv=none; d=google.com; s=arc-20160816; b=t5ssLx94z2pS/kBpo57hqsZB2fyVGXELFop6ime4UM8GVtD+8JLQT/FVc23FFCWnWG 4k74SiXR1U6VkjYA05fwxV642zG8J6DKH7v1iksF4eLeVCNBeZSN8iF7qgtSmr4pBEyF uVvgGLWfPzjSGYV6sxHWepglp3HIo8mspO6/EdPxnbYaspKQX7+mUo1u1rPVgyA4hhn6 cSXRCUL0MRglJZXgOUMpx1VOSRXfLPw1mrK6uBkQimz3hmQFvVHPzYmV1248N9pRd7KT QSoQjDzp1tzEMPjdZMEXxUReFDgPrGe3cqqOlIvo3pFifo22d6Vp2qdVyRMsQbJ2HQ5v 5CAg== 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=bAfPnr936yiP6ekjZo+0a9LG/SQZ6JlZ87s40Mmbu7s=; b=SE3Sj9+saX02KsymHyit28N/HTNvEDjvKZZm3k7FZS2FFR/fiI0hNGk3hm3W6XgSel 80dhFl7lQ1F07S9wKOXS1w8GmMkBpDrf5RecqUzfY2H0niQeQpqktgYR6bbJTeLoVSjB to82oL6TxDuLkfUMR+0uFiI3XAUzSsJb1bqZsWiKzBDeRevJ84FlA3kbPhvermFSCDwG OojKdBzwOxOpDP//pBCDIJa/UIUJNGAMzsWb92TjU3FZjI7l/IRWLjLLxuJvapOKL+hB sLg9BTOsZATkLIm+PLlKWgSWtaSG5HQrjkGweUey/TJmRBMBpOQASyu2OUEtRP1QCvFG ozcg== 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 u4si3555274edq.192.2020.07.26.00.30.19; Sun, 26 Jul 2020 00:30:56 -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 S1725960AbgGZH3J (ORCPT + 99 others); Sun, 26 Jul 2020 03:29:09 -0400 Received: from smtprelay0068.hostedemail.com ([216.40.44.68]:37286 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725829AbgGZH3J (ORCPT ); Sun, 26 Jul 2020 03:29:09 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 1274718029210; Sun, 26 Jul 2020 07:29:08 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:152:355:379:599:800:960:967:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1605:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2689:2692:2693:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6117:6119:6691:7903:8957:9025:10004:10400:10848:10967:11232:11658:11914:12043:12294:12295:12297:12555:12740:12895:13095:13149:13157:13228:13230:13894:14096:14097:14180:14181:14659:14721:21080:21324:21433:21451:21611:21627:30012:30054:30070:30090: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: anger99_0c069d326f56 X-Filterd-Recvd-Size: 3826 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Sun, 26 Jul 2020 07:29:06 +0000 (UTC) Message-ID: Subject: Re: Re: Re: checkpatch: support deprecated terms checking From: Joe Perches To: SeongJae Park Cc: =?UTF-8?Q?Micha=C5=82_Miros=C5=82aw?= , SeongJae Park , Andrew Morton , linux-kernel@vger.kernel.org, apw@canonical.com, colin.king@canonical.com, jslaby@suse.cz, pavel@ucw.cz, SeongJae Park Date: Sun, 26 Jul 2020 00:29:05 -0700 In-Reply-To: <20200726071825.22532-1-sj38.park@gmail.com> References: <20200726071825.22532-1-sj38.park@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-07-26 at 09:18 +0200, SeongJae Park wrote: > On Sat, 25 Jul 2020 21:27:07 -0700 Joe Perches wrote: > > > On Sun, 2020-07-26 at 01:35 +0200, SeongJae Park wrote: > > > On Sat, 25 Jul 2020 10:29:23 -0700 Joe Perches wrote: > > > > > > > On Sat, 2020-07-25 at 15:02 +0200, Michał Mirosław wrote: > > > > > Hello, > > > > > > > > > > I see that this patch went into next and is already inciting people to > > > > > do wrong things [1]. Can you please fix it to require '--subjective' > > > > > switch or otherwise mark it clearly as suggestion-only? > > > > > > > > > > The coding-style as in Linus' master says about *NEW* uses of the words > > > > > listed (those introductions I expect to be actually rare) and not about > > > > > existing use in the code or industry. Making a noise about all uses > > > > > found surely will generate a lot more irrelevant patches. > > > > > > > > > > [1] https://www.spinics.net/lists/linux-tegra/msg51849.html > > > > > > > > And if not reverted, perhaps do not check existing files > > > > at all but only check patches and change the message to > > > > show only suggestions not from a specification. > > > > > > Agreed for this case. However, excluding existing file check doesn't fully > > > avoid this problem. Also, more terms having different deprecation rules might > > > be added in future. How about allowing file check but show reference in the > > > suggestion message as below? > > > > The general problem is that drivers/staging, net/ and drivers/net > > all have --strict on by default. > > > > Emitting these deprecated terms messages with -f --file uses for > > files in those directories isn't a great idea. > > Thank you for kindly explaining your concenrs in detail. However, I think it's > ok to do this check even without '--strict' for files if we explicitly says > it's suggestion only, as Michal said. My patch does so. > > > > diff --git a/scripts/deprecated_terms.txt b/scripts/deprecated_terms.txt > > [] > > > @@ -3,8 +3,10 @@ > > > # The format of each line is: > > > # deprecated||suggested > > > # > > > +# If special rules are applied on the terms, please comment those. > > > > Disagree. Comments about these existing uses aren't helpful. > > Sorry, I don't understand your point here. Why do you think it's not helpful? > If 'checkpatch' finds the deprecated terms, it will ask people to read this > file, which explains special rules for each of the deprecations if exists. The > rule is, in the case of 'slave', 'applies to new uses only'. Therefore, people > could stop sending the noisy unnecessary patches to the maintainers. Because it will describe this for _every_ instance of any deprecated word in the file.