Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp167142ybl; Tue, 20 Aug 2019 17:40:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs3L7uPF/K6Xz4Hw9UBn9GDGFkur0KeeW9jJfLslHY5g92Fa7Dxdjonl75j5oOpGG+eCUi X-Received: by 2002:a63:101b:: with SMTP id f27mr26076286pgl.291.1566348047324; Tue, 20 Aug 2019 17:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566348047; cv=none; d=google.com; s=arc-20160816; b=dHyvHQPPdaZTM87F8Acois2EupWQ+0KrRgS8PkxQ7GxsIhI+vcBSOfDlNeC4yh38F1 xNxhFUdWwBRwUneUtY0Oi1vGy3jiQZRnmjiz2KUqmANLAfXwa92ssK4fuafDaQzp2u2/ CooZMymC9xCYywqPSPRw+0+reXsU0hLQrgLj183zYRhR9Fne85XQaZGjip5MpAnneNH8 Y2Jo+hoGAFZDrNPCzyNamS1xMLPK+VJdxxPWVX8BWFoj4rXL3NW9q5H5saIEW6r3oLF5 mW1wQQrvRZAFacXylsK1Qe30x9s/b08ZvczwsSqnjeW2YWHy64ekrCrmQ8iCj/3kS9YE Fbfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=J8GfTdFwJ9C+O4IwrNHQDMYXfm8ILydCToLj9BH+w7k=; b=DBYi6J/vWoullwyX30sVg9MI89OoVyMrgelNmjlFZLOb+eDq2rik9f7eu6XaE1nX4Z qTsDw5XIDXehfSQh0Ybs3GZF2LHp933hz/rN86mlYMm+wMX572RN7+t57wPDO1aVh8hk m3p0Zqjn5OibpOTCov9Uo4JmxWf7qO/L1dMzbn+beAtXytavAJOH2060aGEZ3Mq1zrUz rfR1/m4Y4W9HI+LxyDcydxDqEF+aCDpxZsZwkefqMROIVMdPwUeCPNvayM55s2TDeyx4 u4X7ZaK8PAWOzpHIZfVDOYugz2yAcK1M0pI97Cx/tHew5Z4BLNZ2YDJca8bGvARY5mAs j/tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="qn1uM/h0"; 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 b31si13424103pgb.128.2019.08.20.17.40.31; Tue, 20 Aug 2019 17:40:47 -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=@canb.auug.org.au header.s=201702 header.b="qn1uM/h0"; 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 S1726707AbfHUAd4 (ORCPT + 99 others); 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--