Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2892926ybp; Sat, 5 Oct 2019 23:47:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkXj0MqfOv7jv8Q4YmV2R0gVRgakkVaHqhNsgFRsxRICGgolMdwgr2mk54Z2+e729uYmUe X-Received: by 2002:a50:a57d:: with SMTP id z58mr23363126edb.115.1570344448825; Sat, 05 Oct 2019 23:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570344448; cv=none; d=google.com; s=arc-20160816; b=mPm2h7Jp+LS1SuRA88tGiR9XWGPtwNTZrVL0maOIf/PLPX3/9XG1PC2ERfLPhDvhkr pIUAjTbCjCCY947xt+z+xJ15UXJ3BgFE6UNJq9l6rgd95B7me2xdPWf89W/OwAFp3jhk 50FcSot+QALEzxFt9uEpHRTBVjE4GFXwwl2L4i10EY4q0j0P96NhM88ql91rlGgaWzU+ r2cac7gdQJ2yTtrg1VER6SF9ju/CICWT9NVcEWbcCteJeLqJcRS1YGnEh+un9FgsE9Zq gPcpBe58SZ7P4Ppay/DvJK39B41U5W4tb0s0Vbfo0fzGFawxJk0CXZ03SnObZysNWonx 7gFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Ytsjv9Zmi64vd4XIR9mkvtt13f//O6O9bvVtgqE/uLs=; b=rMe9kirxkXQTpw9I2p49kV8bNrQng0S3AwTvZk7RCLekCthE4Tj/+XlAVzr/veBTqV 1heGo0yIBXFRPkrU4YhFMS4vLCX5WIUNxPNWriQMh+vdv7B/v2abeKg/48d5euiNJtqE Eu26RI1kxRKfoByQgC8wS6f0/mQ72p8UC2c501RV8KQMbMf21+l9Hz8dMCdBdldo3DPt ihomHf0OKGL65hwrHLKBnykJFNaRklNZ9GufneNcBcauuDWYfwVHW9Dbbkz3LJYfH2Jw Mw908csuqng90giGuYLHXIdqyorEgXFDJxAvvUpj4yaeqpKmgXAPJVeaYikaJJB7js3Y MeoQ== 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 s20si5379756eja.63.2019.10.05.23.47.05; Sat, 05 Oct 2019 23:47:28 -0700 (PDT) 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 S1726268AbfJFGog (ORCPT + 99 others); Sun, 6 Oct 2019 02:44:36 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:63139 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbfJFGog (ORCPT ); Sun, 6 Oct 2019 02:44:36 -0400 X-IronPort-AV: E=Sophos;i="5.67,263,1566856800"; d="scan'208";a="321749807" Received: from 81-65-53-202.rev.numericable.fr (HELO hadrien) ([81.65.53.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Oct 2019 08:44:14 +0200 Date: Sun, 6 Oct 2019 08:44:14 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: YueHaibing , Gilles Muller , Nicolas Palix , Michal Marek , =?ISO-8859-15?Q?Matthias_M=E4nnich?= , Jessica Yu , Greg Kroah-Hartman , Masahiro Yamada , cocci@systeme.lip6.fr, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts: add_namespace: Fix coccicheck failed In-Reply-To: Message-ID: References: <20191006044456.57608-1-yuehaibing@huawei.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1244363809-1570344254=:4623" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1244363809-1570344254=:4623 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Sun, 6 Oct 2019, Markus Elfring wrote: > > Now all scripts in scripts/coccinelle to be automatically called > > by coccicheck. However new adding add_namespace.cocci does not > > support report mode, which make coccicheck failed. > > This add "virtual report" to make the coccicheck go ahead smoothly. > > I find that this change description needs improvements and corrections. > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=43b815c6a8e7dbccb5b8bd9c4b099c24bc22d135#n151 > > I would find a commit subject like “scripts: add_namespace: > Add support for the default coccicheck operation mode” more appropriate > (if this software development will be clarified further in the shown direction > at all). Please let this go. Please stop criticizing the English of others. The message is understandable, and even more informative than what you propose. julia > > > > Fixes: eb8305aecb95 ("scripts: Coccinelle script for namespace dependencies.") > > I got the impression that a sub-optimal solution approach would be chosen here. > The automatic script execution is requested despite of the fact > that the input parameter “name space” (SmPL identifier “virtual.ns”) > will be required. > > I am curious under which circumstances an other transformation > can become more attractive. > [PATCH 0/2] Coccinelle: Extend directory hierarchy > https://lore.kernel.org/cocci/d8c97f0a-6ce2-0f5a-74a9-63366c17f3a6@web.de/ > https://lore.kernel.org/patchwork/project/lkml/list/?series=412494 > https://lkml.org/lkml/2019/10/2/60 > > > > +++ b/scripts/coccinelle/misc/add_namespace.cocci > > @@ -6,6 +6,8 @@ > > /// add a missing namespace tag to a module source file. > > /// > > > > +virtual report > > + > > @has_ns_import@ > > If you would insist on the complete support for the operation mode “report” > of the tool “coccicheck”, I would eventually expect that another SmPL rule > will provide a helpful message instead of immediately exiting after > the script variable “ns” was defined. > Are you going to take any additional software design options better > into account? > > Regards, > Markus > --8323329-1244363809-1570344254=:4623--