From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 820E0C3A59E for ; Wed, 21 Aug 2019 00:33:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F50922DA7 for ; Wed, 21 Aug 2019 00:33:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="qn1uM/h0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726721AbfHUAd4 (ORCPT ); Tue, 20 Aug 2019 20:33:56 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:53095 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbfHUAdz (ORCPT ); Tue, 20 Aug 2019 20:33:55 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46CpYq4Hwhz9s4Y; Wed, 21 Aug 2019 10:33:51 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1566347632; bh=Fl8sSGoKsB1MkwUu7+QjZsqdQFPC+W4fihQ2Ozm2/CI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qn1uM/h0WQROjUOtOJPm7wDgPZJuDuUZgjBKAeqa1uDSQLjGQlVwAzGk+JypaoWK1 0vZdFP/jcUGwJac7F9GErPo8g6vaR0w8Cad3zbUxHYR07uG3CjgmHi6bd0QJEfDyFb X6xC47/YjZZr073/0tTuG6gkVKWuhiEL1pixvsBhcx1t+01UlOwYqV12e1smUhX56Y cP1xpTlz4QUJrilMALxMOu6Id06GT9DzcuU5LjQf/cDOegYIT2r+k7rMqJ03Bj0wUH 8V+LyZgkx+cN1voxqde6kU/y+NL0SGA71rYk39l2BxEXh3V19dNUtY/bFlP3fxHP/w im4DlLJb+pmXQ== Date: Wed, 21 Aug 2019 10:33:50 +1000 From: Stephen Rothwell To: Joe Perches Cc: Linus Torvalds , Julia Lawall , "Gustavo A. R. Silva" , LKML , clang-built-linux@googlegroups.com, Linux Next Mailing List Subject: Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT Message-ID: <20190821103350.5db50b02@canb.auug.org.au> In-Reply-To: <14723fccc2c3362cc045df17fc8554f37c8a8529.camel@perches.com> References: <9c7a79b4d21aea52464d00c8fa4e4b92638560b6.camel@perches.com> <6a5f470c1375289908c37632572c4aa60d6486fa.camel@perches.com> <4398924f28a58fca296d101dae11e7accce80656.camel@perches.com> <20190820092451.791c85e5@canb.auug.org.au> <14723fccc2c3362cc045df17fc8554f37c8a8529.camel@perches.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/xAmH51UGfy068NWyuk2K7em"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/xAmH51UGfy068NWyuk2K7em Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Joe, On Mon, 19 Aug 2019 17:08:00 -0700 Joe Perches wrote: > > A few examples: >=20 > 1: a patch just to MAINTAINERS done via bash script: >=20 > https://lore.kernel.org/lkml/904551f1f198ffac9a0f9c3c99aa966b0a7c76c1.cam= el@perches.com/ >=20 > $ git grep -h "^[FX]:" MAINTAINERS | \ > cut -f2- | grep -vP '/$|\*|\?|\[' | \ > while read file ; do \ > if [ -d $file ]; then \ > sed -i -e "s@${file}\$@${file}/@" MAINTAINERS ; \ > fi ; \ > done >=20 > This one is trivial and takes almost no time. That one seems ok (except you need "s around the $file in [ -d $file ]). In this case, I guess the plan is that I run the script and commit the result using the commit message and authorship from the above mail ... (I would also replace the first three commands with sed -En 's/^[FX]:[[:space:]]*([^[*?]*[^[*?/])$/\1/p' MAINTAINERS /me puts away his yak razor :-)) > 2: would be Julia Lawall's stracpy change done > with coccinelle: (attached) >=20 > This one takes quite a bit longer as it has to do a > cocci --all-includes scan of each source file and each > of its #include files. What do I need to apply that "patch"? --=20 Cheers, Stephen Rothwell --Sig_/xAmH51UGfy068NWyuk2K7em Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl1ckW4ACgkQAVBC80lX 0GwFxwf+MPJLLRcIsd54FINNuPTxfuI+rg8YgOcfHqkefg7X12vpCauMoaukc2ZO BzhtoYN0OxezS7idZ4vivAwsC5QRf2i9MQKB3g+7nUiron+nGvyYXk/FKTIx+ScW n09WjpJ8gof/lDgPiCvmQdgGJslQatGYyNfn0W5gKeFbQMEs2SOWN+Ycir21tgEq 5/Fs/2oHDKNTIMOoEEk/Ictc+z5tXiWYoTW8I43+c2OZHRIai0KXIIUT+FuBWPTV xsjQqZMDuLJkwKbea2Hhut0w+xKNdGNPTcpQ8rmjSFniREhHUfDWj/HV3k9AeVy4 QBs9fxzZ32bQxTs/mkU+Gu+uQUHMuQ== =IU9A -----END PGP SIGNATURE----- --Sig_/xAmH51UGfy068NWyuk2K7em--