Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3948244ybg; Fri, 25 Oct 2019 11:08:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDTYNm+uVydJpe+gX7JgTTIGFT7z92FnM1mRMUUToiygmlgRTqKkbcSEIbsZKuXuaWicCH X-Received: by 2002:a17:906:aada:: with SMTP id kt26mr4788324ejb.261.1572026920441; Fri, 25 Oct 2019 11:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572026920; cv=none; d=google.com; s=arc-20160816; b=NPrOpQjO+bTqfXCxcWQonbDz9smpkDx8lLFj1u0I3WfxwVFB9GA8jKk9aY4KQT78oS oQvy6udC/WvJ9xFLOPmESW4Yqn1ta3ereMwfx1zOfMFjPasrp4OCFN3kN91iILIn5+Ho HLDZs8zbkii/qXHenenzRl+zF+byhFTa8HYEfgxN1Y6eYl8iL816clezCRBw2nxTU70f lt36KIJ6sxsMvGGHYwGdQvn/elR8LHsS/AlRgyCEdkzF2/PTxig9Q8phoPonfSCM1ZnA MuD7fCkb7xyVTVH99iUujOcA/+d7CTJBryGAZI3tKXrpYJ/nGzEn6K4JdbibQk0Stgq0 gYdg== 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=l4I3j33otfIQZSfw7zL4nNKREYId00X6FYw//AMabaE=; b=IlEg47yrI607heal9amDJJEf6CWdpI1mmUJ18nQwwVmNST8bjld8eva6Ena2mbEIoz 6hcmptd1Kl1rqAlSIaysy0ko1wxeBInFQ9TvJUQp5R6wxlnw1MoCFuVzHg+e17G8ORI+ vQkvYqRpIe/D/g/HKdCjfxg9wr8W3GJ0sJ3f24YPLt5EeQKkYKgOz8wU3WvZkLTsstZI xCu/DmU5LAB3/U4NQpNL/6eIdrUlqZ75qgVxUSeMWmJM+5/Nk234bNclLvFnW1mclkFP 0xLKnYCtVNkQye4AOJ76bKYee0DIuAggDixPkREHQuSGsdY8Bj+sa5Qdol0lJT3WtISB NDjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=J7JzzEq9; 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 a3si1748723ejy.286.2019.10.25.11.08.16; Fri, 25 Oct 2019 11:08:40 -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=J7JzzEq9; 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 S2409724AbfJXPlu (ORCPT + 99 others); Thu, 24 Oct 2019 11:41:50 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:51443 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409615AbfJXPlt (ORCPT ); Thu, 24 Oct 2019 11:41:49 -0400 Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x9OFfT9D030417; Fri, 25 Oct 2019 00:41:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x9OFfT9D030417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1571931690; bh=l4I3j33otfIQZSfw7zL4nNKREYId00X6FYw//AMabaE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=J7JzzEq9jjLw/A4o0vktjGoZM/o7nOPyZ8FJ0n8aolcVy3rE56fx7QD8thRLNPdul mnDh+esLCS0XIygkfjxyVUEmrfI67Ks/JVCIIjjR9J9dhTRAAIdAWj7a0m5mWJ255Y W76ZVDt21NQ5YpFO9usnpk7YY/YERETFjeDQ8DWSpGQbROFdWil1E1vKtBCrh+JLQU E4GkkVdSdsoaCkWHzMWamdBpvGD2t65EVEaeiJdH+oRM/Zf7rgSUAgE9ZzpniLbdn3 Aby5i/iYIdpGmZEbLsmF0l5JBAGizqtLGrTlzsgvNSsWaOatg/Kmb0a24xTyXnDE1a Cox9VvptnGKUg== X-Nifty-SrcIP: [209.85.221.170] Received: by mail-vk1-f170.google.com with SMTP id 70so5405055vkz.8; Thu, 24 Oct 2019 08:41:30 -0700 (PDT) X-Gm-Message-State: APjAAAXNjydu3jidSu95JZarNCINHp/QuAJm2bx+Q3zTqU7VmPi3Wt8l wWw+Ru0gS3qo1gUa2PpZ+hlkltsK1hY3CeAfhjk= X-Received: by 2002:a1f:a349:: with SMTP id m70mr9104948vke.26.1571931688982; Thu, 24 Oct 2019 08:41:28 -0700 (PDT) MIME-Version: 1.0 References: <693a3b68-a0f1-81fe-40ce-2b6ba189450c@web.de> <868spgzcti.wl-maz@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 25 Oct 2019 00:40:52 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: coccinelle: api/devm_platform_ioremap_resource: remove useless script To: Joe Perches Cc: Marc Zyngier , Markus Elfring , Himanshu Jha , Julia Lawall , kernel-janitors@vger.kernel.org, Coccinelle , Alexandre Belloni , Linux Kernel Mailing List , Andy Shevchenko , 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 On Sun, Oct 20, 2019 at 7:13 AM Joe Perches wrote: > > On Sat, 2019-10-19 at 21:43 +0100, Marc Zyngier wrote: > > Providing Coccinelle scripts that scream about perfectly valid code is > > pointless, and the result is actively harmful. > > Doubtful. > > If the new code is smaller object code and correct > than the conversion is worthwhile. I agree. We use multi-platform defconfig. I always appreciate the code refactoring that reduces the object size. > fyi: > > There are already ~450 uses of this function and maybe > ~800 possible additional conversions. > > > 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. > > Right. > > 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. The deleted semantic patch supports MODE=patch, which creates a correct patch, and is useful. -- Best Regards Masahiro Yamada