Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp562881ybg; Sun, 26 Jul 2020 13:34:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRX1jUR4B7VdmNK6J3PYyH5SbQVmseScWmhMjSlOEf2YJgyvQzXeHv+eCDG1XVsqIPSP51 X-Received: by 2002:a17:906:e213:: with SMTP id gf19mr18174042ejb.433.1595795652554; Sun, 26 Jul 2020 13:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595795652; cv=none; d=google.com; s=arc-20160816; b=0tjYiNpaE99fvDQMIn8y1w9zjsMS01KS2Kwies4DVfqsE/4mBr8ionjF5CGqJJcckX +q4c1cemSoTNn/ACGjULpOF9+31b7wA34DMaXrbXPZ5DaCyL57e0Tly9chm53oiTGuKp G9fkq25SQ9h25eiD22NXcDos5XIj5qcVPRr+nm3hC2+hyUagWtyXXCfbz6k0yHXTXO1t F0M6GOx/AAZFdk7WFDg2/e2IEgKSGcaKkk7KkfMDuW8q6mnVoqcr/gsEkWu7iFcEazwF 3ObAXT3+/5aZuYOF0jGJ4eboog7jHWsJGyRRXR/1y0ACchjrq99Iudi7Jo5apMpNTcSo ToLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YPskcTFJPdpvLZGAXBl3Np4Wk7pcGCj7+WQaZVFZKjI=; b=uSM6NTu/dxusTeQjLT6uG9m3MpPuFnNvt3Jp4LMLpeLuhG3QEUHLLjgvzeFN8OmMeA ZEwBTuyN5Qt17ZTzECZy3o+9r4CnetZX9Qb26smPD2x//Fm1VN6aFUlE/4L65TLSo1pt P+xW1ZSaBvdXIMeVFuXQfprdywsQSf4nAG1wowJ2uWbOlBt4ZcWjAyIDh6NeQUhC/SM3 fx22KJfTtK8No4h/RVfd3JCuQirbnGl8joA9csfLsTK1gzf5l12wwrliaW0VbwtNUI9D YH5zPSUggEicpmt5cqeWRPYI2xf1QBuq+R8ov67s5XvMfCv62SBgtOJx+9oxcM7V2O5P ivpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=Wdrlps37; 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 q18si2925077eji.43.2020.07.26.13.33.50; Sun, 26 Jul 2020 13:34:12 -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=pass header.i=@rere.qmqm.pl header.s=1 header.b=Wdrlps37; 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 S1727873AbgGZUde (ORCPT + 99 others); Sun, 26 Jul 2020 16:33:34 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:16529 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgGZUde (ORCPT ); Sun, 26 Jul 2020 16:33:34 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4BFF566vwDz4D; Sun, 26 Jul 2020 22:33:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1595795611; bh=hWSgLNCRAj4HMVVvAZmSUOr1NZo4lGA3zytqEYdGgus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wdrlps37SNaSjxBzBoDAzcV2fEu9KPPOZR8rLCrSmSSvSLUcXV2d5ILw1DaOy2cwj TYOp5rb6zyroDpDPOzxib9sGpQN7iVXEyQ3NIQ+lxg0q0MWbDd+eWnoVwtThQfSjvF zWLwQimdz2/KVJK8tXrdds5n0jnjRr9gpQz8XYQyRSVJQZxc/ROvKMo8Uka2lmUsUo 5U1ivdBb+ijMILLBDHEEsSfIlftBeK9ONg0P24zl4R8QPG/5GueKA8gZt8Jisas3Om 6S4TgLmaEA9uqEyvYEZoKtlcY0pMBFYwwZszzn0ymppkUPPovkFmBmOAEz5go+m3+e 4OOZel3UKezyA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at mail Date: Sun, 26 Jul 2020 22:33:28 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: SeongJae Park Cc: Joe Perches , SeongJae Park , Andrew Morton , linux-kernel@vger.kernel.org, apw@canonical.com, colin.king@canonical.com, jslaby@suse.cz, pavel@ucw.cz, SeongJae Park Subject: Re: checkpatch: support deprecated terms checking Message-ID: <20200726203328.GA8321@qmqm.qmqm.pl> References: <5f5679b4c76bf0e16064f3a45319bc35938ad96b.camel@perches.com> <20200726180748.29924-1-sj38.park@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200726180748.29924-1-sj38.park@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 26, 2020 at 08:07:48PM +0200, SeongJae Park wrote: > On Sun, 26 Jul 2020 09:42:06 -0700 Joe Perches wrote: > > > On Sun, 2020-07-26 at 17:36 +0200, SeongJae Park wrote: > > > On Sun, 26 Jul 2020 07:50:54 -0700 Joe Perches wrote: > > [] > > > > I do not want to encourage relatively inexperienced people > > > > to run checkpatch and submit inappropriate patches. > > > > > > Me, neither. But, I think providing more warnings and references is better for > > > that. > > > > Unfortunately, the inexperienced _do_ in fact run > > checkpatch on files and submit inappropriate patches. > > > > It's generally a time sink for the experienced > > maintainers to reply. > > > > > Simply limiting checks could allow people submitting inappropriate patches > > > intorducing new uses of deprecated terms. > > > > Tradeoffs... > > > > I expect that patches being reviewed by maintainers > > are preferred over files being inappropriately changed > > by the inexperienced. > > > > Those inappropriate changes should not be encouraged > > by tools placed in the hands of the inexperienced. > > Right, many things are tradeoff. Seems we arrived in the point, though we > still have different opinions. To summarize the pros and cons of my patch from > my perspective: > > Pros 1: Handle future terms deprecated with different reasons and coverages. > Pros 2: Inappropriate patches are avoided if the submitters carefully read the > warning messages. > Cons: Careless people could still bother maintainers by not carefully reading > the message and sending inappropriate patches. > > To me, the pros still seems larger than the cons. I would like to also again > mention that the maintainer who first reported the problem, Michal, told it's > ok with the explicit messaging. Nonethelss, this is just my opinion. > > Attaching the patch addressing your comments for the previous version. The > changes from the previous version are: > > - Make the name of reported terms not too verbose > - Avoid unnecessary initialization of the reported terms hash > - Warn multiple deprecated terms in same line Hi, Maybe you could split the meaning of --subjective and --strict, and enable those checks only for --subjective? The test is really hard to do right: you would have to consider the context and not only mere occurrence of a word (heh, I even wrote 'blacklisted' here, since it really is about a night/danger analogy and not political/ethical one). Best Regards, Micha??Miros?aw