Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4010941ybg; Tue, 29 Oct 2019 00:24:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaIRxEiGQopq6JD/3hKEauXblX1CRdVQNPLWD66L/jdX8Fzmsd0kyxvtx33aFNFO3xETR+ X-Received: by 2002:a17:906:49c9:: with SMTP id w9mr1733413ejv.309.1572333847752; Tue, 29 Oct 2019 00:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572333847; cv=none; d=google.com; s=arc-20160816; b=v5gZAg9BF70Eeg3AQyH6/zdEZEL+8HA2zEhA35AgIo8P4bYXXu3F/30tDIRJRZORcS VZACSidvzZYURaW/PczoBj1/CCB0Jv9gzYTo1lL6JvmiOBiFGdi4RK/rEx0fsk5Dld1w UBWlNeNoUa2wrm06DqsVllCTeBAQPwFGUmtBJUz375HEMOF87kAQuhHW7skPGwIgmeus ufoNqiT4WKTF8/BTftNy3on7pucg40FwUT6lI6RfaPHUrgSi73fFNy+2wkdpxMLOp69W F+DhAYH+h8LUvfYr/Rawdid/Uf83d6w/qzvBNBo2aRy9tcWvXp3awI9wuYQQuZTwl4+4 13Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=KpON6jENOa78faqVFtQXeF/x8eRnLcnMvYpsLe7gtRw=; b=duoY0JCtZSS040Nh0dN3NCA3ZfeAB6hRUZJH+rqv23ugC9SEUdSAqljOqUTMCHiRq+ XrhqrKYnqRuSk8zVP9EjeevRvcIAQ7OLMBRJkFLN1C49p3ceH0NAKD3tRu7AYWWW4A3H S7Y6nArmydyYIT4Pdvi/8qY7LtfjChJZTQj0xxinBEgOA28hwa5mbbMCv3HrgqzADarV VNjPNaYn9kNfbVkL8cBIWPAz9zu99xFvTI0n4MJeV6Ndq2O0pW/W6QIFGd0pdZJYtT+0 FfUYwQ81OHLARgTTBD8iUWy1JLqIMdl7myM7e71KF7cwa4IIjXGdKDr+7EasvpRtoDJz 7ueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CGuSk+Rr; 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 jx8si7615741ejb.122.2019.10.29.00.23.44; Tue, 29 Oct 2019 00:24:07 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CGuSk+Rr; 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 S1731088AbfJ2C74 (ORCPT + 99 others); Mon, 28 Oct 2019 22:59:56 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:51495 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730875AbfJ2C7z (ORCPT ); Mon, 28 Oct 2019 22:59:55 -0400 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x9T2xTqj016926; Tue, 29 Oct 2019 11:59:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x9T2xTqj016926 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1572317970; bh=KpON6jENOa78faqVFtQXeF/x8eRnLcnMvYpsLe7gtRw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CGuSk+RrGXsd6J11mq5ZrwjADHBaJZvsVn59C82fYYpR482hK2PyTRr81P3Kx7lUk UhJtVotXaOdjmzKK553POUJVvKly/FeFCFk+AoPDRM/hOLVEnzXe72QLrVrB4J8PTg YMxq21bXABz1tdXgNfVO4edowruo4yW2z0Oszld0MdolcE9ibT6vKR1ZKGLO445xw1 7aW5GZMpMe2lyg0GtzmMadtdpJkQpudIAseGGjaJgzLGdTlshpKMLBSYrNEoC90V8d 7lqPBFEmYLFFxdGU1bmUhQqfQ/DtY9VeZ0Kobq6nlng0hc4H7LwvezeL54tfE17KZH 1GsgPOSFw0Pdg== X-Nifty-SrcIP: [209.85.222.54] Received: by mail-ua1-f54.google.com with SMTP id q16so3381236uao.1; Mon, 28 Oct 2019 19:59:29 -0700 (PDT) X-Gm-Message-State: APjAAAXqj9GGjXPkP2nJ5xGyO6JBP+d2x+NMacLtSq8MJLe/9Wzs9HNv +WXRFiOc4J37wKhQLkmhvOwQKXHav7/YuVHAaAc= X-Received: by 2002:ab0:658d:: with SMTP id v13mr3781878uam.40.1572317968542; Mon, 28 Oct 2019 19:59:28 -0700 (PDT) MIME-Version: 1.0 References: <693a3b68-a0f1-81fe-40ce-2b6ba189450c@web.de> <868spgzcti.wl-maz@kernel.org> <20191025080843.GG32742@smile.fi.intel.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 29 Oct 2019 11:58:52 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: coccinelle: api/devm_platform_ioremap_resource: remove useless script To: Julia Lawall Cc: Andy Shevchenko , Joe Perches , Marc Zyngier , Markus Elfring , Himanshu Jha , kernel-janitors@vger.kernel.org, Coccinelle , Alexandre Belloni , Linux Kernel Mailing List , Arnd Bergmann , Bartosz Golaszewski , Gilles Muller , Greg Kroah-Hartman , Linus Torvalds , Linus Walleij , Michal Marek , Nicolas Palix , Thomas Gleixner , YueHaibing Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julia On Fri, Oct 25, 2019 at 5:38 PM Julia Lawall wrote: > > > > On Fri, 25 Oct 2019, Andy Shevchenko wrote: > > > On Fri, Oct 25, 2019 at 12:40:52AM +0900, Masahiro Yamada wrote: > > > On Sun, Oct 20, 2019 at 7:13 AM Joe Perches wrote: > > > > On Sat, 2019-10-19 at 21:43 +0100, Marc Zyngier wrote: > > > > > Alexandre Belloni used > > > https://lore.kernel.org/lkml/9bbcce19c777583815c92ce3c2ff2586@www.loen.fr/ > > > as a reference, but this is not the output from coccicheck. > > > The patch author just created a wrong patch by hand. > > > > Exactly. Removal of the script is a mistake. Like I said before is a healing > > (incorrect by the way!) by symptoms. > > > > > The deleted semantic patch supports MODE=patch, > > > which creates a correct patch, and is useful. > > > > Right! > > I ran it on the version of Linux that still has the script: > > fe7d2c23d748e4206f4bef9330d0dff9abed7411 > > and managed to compile 341 of the generated files in the time I had > available, and all compiled successfully. Yeah, this semantic patch did the correct conversion as its header part showed the confidence. // Confidence: High > I can let it run again, and see > how it goes for the rest. Perhaps it would be acceptable if there was no > report, and people would be forced to use the generated patch? I do not think this is the right thing. MODE=report is the default, and it is fine. > > If someone is writing lots of patches on this issue by hand, then perhaps > they don't have make coccicheck to produce patches, and then would > overlook this case completely. > > If it would be helpful, I could group the generated patches by maintainer > or by subdirectory and send them out, if it would be easier to review them > all at once. Yes, please. Subsystem maintainers trust you, so I think it will make things move smoothly. After converting most of files, I want 283ea345934d277e30c841c577e0e2142b4bfcae reverted. > > Anyway, the rule is not in the kernel at the moment. For it's future, I'm > open to whatever people find best. Personally, I prefer when same things > are done in the same way - it makes the code easier to understand and > makes it simpler to address other issues when they arise. We always did the same things in the same way except commit 283ea345934d277e30c841c577e0e2142b4bfcae -- Best Regards Masahiro Yamada