Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2893833ybg; Sun, 20 Oct 2019 02:35:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzd3ER858NcYmKmSuQpiexGgXvAxsuI/jVJGg4nJAo590gZATAa2G3N6NPsmTNEjesqliS5 X-Received: by 2002:aa7:c24d:: with SMTP id y13mr18919849edo.186.1571564128206; Sun, 20 Oct 2019 02:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571564128; cv=none; d=google.com; s=arc-20160816; b=ZGt30GJkOZEFSe8uMQnYuVZLyq/CQTvnaqg1gVsbZok1/HW0p3JxJ821BEI6uQy1OI 3a77olh2Pby5mShSHnrp1L+MYxdwlD//NaGGAv0AIc+FqJ03rGOhJa+elAUQ6RMrXe41 VEXzjcj0dfG/m8qnjhTKLVgr7rTBV06/uF+5DqVjBGVISttHkELj8zxFjWXzuXQfNi+H 5t2MPf9IwPXGhwr0TvOWWDWQ2qaqIK7UfYEw86Jfs3xRSxqcpIyZvUUJu557LXq5uMoR zhIvmZI8pwZreMJcXF2VNR6DpiOFbNHlauFtC/Fo/xb7mu9cF/03QH8HEdbWkQ7rGK4K +DEg== 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 :in-reply-to:subject:cc:to:from:message-id:date; bh=uMZYZYL64X09+GE2t9K8JdvaRajTKFuZUy98I8Lv9pk=; b=qBKcZ2o8Z1EJNKGOzjlpOJblEmI1QaoqtC2FOtZA4yaIgVFMR9hYlQG7zUdc1d5t15 j51Vp+w6FOQ25tFqSwFUkA/y+NKFb3hT/6++hW9g0vpanGfOWDy5KPen65i9qIezCHlj exyDyNF2COtO8eCAtzV7WsNo1FNqMavHhmygj2EG+krtiZ2XETpOnCj9SG9VfdqNdkv0 s02BYRXj3ev8+GYyi2zTQGFJXS5FQ0/RWqnpr4eWvACm481O4uU+pCS4suTHN11vcaam AXTl18aIiSEa5BF1mWcSLibjX0oOph+P4WVV+tAt/NEX7I7P3n5kqLQxsY2oFJiZq0Gq d7dw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b31si8653209ede.12.2019.10.20.02.35.04; Sun, 20 Oct 2019 02:35: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbfJTJe7 (ORCPT + 99 others); Sun, 20 Oct 2019 05:34:59 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:33251 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbfJTJe7 (ORCPT ); Sun, 20 Oct 2019 05:34:59 -0400 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=big-swifty.misterjones.org) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1iM7by-0001qi-Bk; Sun, 20 Oct 2019 11:34:54 +0200 Date: Sun, 20 Oct 2019 10:34:52 +0100 Message-ID: <867e4zzrnn.wl-maz@kernel.org> From: Marc Zyngier To: Julia Lawall Cc: Markus Elfring , Himanshu Jha , kernel-janitors@vger.kernel.org, Coccinelle , Alexandre Belloni , linux-kernel@vger.kernel.org, Andy Shevchenko , Arnd Bergmann , Bartosz Golaszewski , Gilles Muller , Greg Kroah-Hartman , Linus Torvalds , Linus Walleij , Masahiro Yamada , Michal Marek , Nicolas Palix , Thomas Gleixner , YueHaibing Subject: Re: coccinelle: api/devm_platform_ioremap_resource: remove useless script In-Reply-To: References: <693a3b68-a0f1-81fe-40ce-2b6ba189450c@web.de> <868spgzcti.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: julia.lawall@lip6.fr, Markus.Elfring@web.de, himanshujha199640@gmail.com, kernel-janitors@vger.kernel.org, cocci@systeme.lip6.fr, alexandre.belloni@bootlin.com, linux-kernel@vger.kernel.org, andriy.shevchenko@linux.intel.com, arnd@arndb.de, bgolaszewski@baylibre.com, Gilles.Muller@lip6.fr, gregkh@linuxfoundation.org, torvalds@linuxfoundation.org, linus.walleij@linaro.org, yamada.masahiro@socionext.com, michal.lkml@markovi.net, nicolas.palix@imag.fr, tglx@linutronix.de, yuehaibing@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 20 Oct 2019 06:38:30 +0100, Julia Lawall wrote: > > > If said script was providing a correct semantic patch instead of being > > an incentive for people to churn untested patches that span the whole > > tree, that'd be a different story. But that's not what this is about. > > What is the actual incorrectness with the script? The first thing is that it spits out a "WARNING", which is almost universally interpreted as something that needs addressing. In this case, it really doesn't. The suggested helper is only icing sugar, and the original code is perfectly fine. The second thing is that it results in people posting patches they don't even compile, let alone test. There would be a good chance for these patches to be correct if the script was directly generating them, but that's unfortunately not the case. > An option could be to adjust the rule such that it can be run with an > extra command line option, like -D developer but is not run by default by > make coccicheck. Maybe. I'm not sure this will deter people from running these scripts and sending broken patches anyway. No matter how many safeguards you put, people will still post broken patches just because they can. M. -- Jazz is not dead, it just smells funny.