Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp701684pxv; Thu, 22 Jul 2021 10:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOabpUV+RWPGA/1rElR+VfFJP38j1nl/Ywx3dCYgi+qUpawNL3EW5GD6IvHOQaUrd6nFoP X-Received: by 2002:a17:906:e088:: with SMTP id gh8mr836788ejb.125.1626973468530; Thu, 22 Jul 2021 10:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626973468; cv=none; d=google.com; s=arc-20160816; b=OwnWRdnVKOJDtq0TNpBWlCQcJNFWO5QNG0PDdQqB9iAXYMbKZRoiUj7DUwbnAuDzIe LUX5BTc8AwTfZ2oBi0r+n2JmWDGhCwxcfYVJT7IHvJc++oluG5v52Zx9IHD9UAe0WZSr Wngdu1xPrwA4YuHZbam/KfBgGmxpfWQXNv60fjAbnVTpFa9kmqxKHTnl7hCKRPXA17oD OCEJho/A85hB4J4DZQInGgu19NnoNuEwiAYDct7reJizVI//Z/HS35IyKBNpwPSXo7/i e0C9ISmCmMvvQQ6ABNf4hjWy3WUoQ97+8QlOgOURjW58bBRuQL6Hvj1Z2RWCtPyIIU97 MPzw== 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=lnm8SH8rMdvgz6v/h6kTDEjEZ7XNyW0aZ2Bh5mYycKY=; b=A8gLt1yz/CY84YAE/hlOdB6EoRCijm/2Z+w3DYCrjy9OVDUD/D5Snb3PdIrgJIIRnX FUu9qio2yr1O/xoRkJl/BJF625X6ikaXMJ32WrQaOS+S4TaWEJFv0z11IjFrUF8LnxuS WIMbfMNcw0G8sns36Ko1Q3k8s5CzGYFP+IUXYsLjV7vyPsYkoCZcemVJdSz3kT3sePvJ pWJjSu8qOl+Rtg8w4xoyC42B5ttjdGrEbNDz1TiS+LSKpnqbseyOWLcBwP5igrUNF5ju wLN9EPFPsaCiIoRLick3xgLwLFWf3RWlKkClyL2hG6Yk9ti/Dsk6NyOiNJsjXWF3VK+O 286w== 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 y15si32537318ejq.648.2021.07.22.10.04.04; Thu, 22 Jul 2021 10:04:28 -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 S232926AbhGVQUx (ORCPT + 99 others); Thu, 22 Jul 2021 12:20:53 -0400 Received: from smtprelay0105.hostedemail.com ([216.40.44.105]:41190 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236331AbhGVQU3 (ORCPT ); Thu, 22 Jul 2021 12:20:29 -0400 Received: from omf06.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 1007A182CF671; Thu, 22 Jul 2021 17:01:04 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA id 216432448BE; Thu, 22 Jul 2021 17:01:03 +0000 (UTC) Message-ID: <78784bd6436e7010914cde474d07e63ab073205c.camel@perches.com> Subject: Re: [PATCH] checkpatch: add grammatical judgement for total output From: Joe Perches To: Hu Haowen , apw@canonical.com Cc: dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, linux-kernel@vger.kernel.org Date: Thu, 22 Jul 2021 10:01:01 -0700 In-Reply-To: <1e0a9acb-e973-7371-8425-05e066db0827@email.cn> References: <20210721151416.30530-1-src.res@email.cn> <68b4f05607e9e44559e174d9b50e435fb58ef5aa.camel@perches.com> <1e0a9acb-e973-7371-8425-05e066db0827@email.cn> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamout03 X-Rspamd-Queue-Id: 216432448BE X-Spam-Status: No, score=0.84 X-Stat-Signature: kop164xq5wc44f7utfjiktkh8et16o5y X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18hEutqydLxO0aX2p8sLjuI1FNtG+pAz6k= X-HE-Tag: 1626973262-863112 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-07-22 at 18:04 +0800, Hu Haowen wrote: > On 2021/7/22 上午12:03, Joe Perches wrote: > > On Wed, 2021-07-21 at 23:14 +0800, Hu Haowen wrote: > > > There lacked a English grammatical identification within the final > > > output of checkpatch.pl such as the following: > > > > > >     total: 1 errors, 11 warnings, 4094 lines checked > > >                   ^ > > > > > > Which violated the rule about the usage of the singular form and the > > > plural form. Hence fix the issue up and make it output the proper > > > sentence. > > NAK > > > > I appreciate the desire for precision but I don't want to require > > any automated downstream user of checkpatch to be changed. > > > > I think users understand the output even though it may not be > > grammatically correct in some cases. > > > How about another modification, which turns "errors" into "error(s)"? > In this case not only did the meaning convey but automated users won't > be confused toward their automatic programs. I still think this doesn't need to be changed.