Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3077pxb; Mon, 31 Jan 2022 03:49:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvDVUJV77lAk9lAkZx1l0Dzv2vC1fwzZRc3wc0LL04pvY/hzHf1thDx2c8t3ntmWDRPKf0 X-Received: by 2002:a17:903:110c:: with SMTP id n12mr20404354plh.127.1643629787659; Mon, 31 Jan 2022 03:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643629787; cv=none; d=google.com; s=arc-20160816; b=xr+I4veU0qc70Tx6Y00f1WBf81g5OK7b+rCVjGfyswSjJpqJjS6OfiETYvgfNbpLC5 mh7QSvMIvksJ2zFqn+pOmQReyWvYSxMGPw8sx0atKx8dx1yDIkFaBn3Cb2ooPCHpJpR8 4r6b22LNXRAQvikmgv1W+XAqidoNMf2cJslkf4kk0llvBSPN+utOKGGqaoQAs+lFcEzK suqzN0pfQmgc5H3HfJM13tljR2c6gzuBmfWLvbU93MvsZTJATVUmtQbwS8eHp3tzScrU ZBcmZkHlUq/7jmZgSIP9qeqWOf3tsZwwSGrzJGlfRR228fEi3Qd7K/SVuy5ZyHsL41Rd UVHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=xUwCqbFq5p1l8yHGUoeM5CsdqnzYrFZbgfX57fO0sno=; b=RTgdqTEBXwAjlnsUHJFZBvunsnUZFb/vprYJ6BbGbfuWZma6HPX2UAz/UCp0Vu2x2G T/S3zr6yz4+Dz7E9FR+Dl7Wsnp8Uy7OGqnf7niWPcF6b3F94Jrs8R4XfzJgA+b/Rj/Ch W4PKxS3mExNRY+HqvLor58VSLTdfPAVX/2QZXNwx7m4dxKZxdlzxgvkJXbwsM5Nfn1iu +sNdD/T4srD/fE3HIERtDtxm1guEhPYXEyCHkKX9Cq1to99sviB1ccfpqYjJB+2fT6Xl vFF2N79skFhTGAmUNcKJB0MLQM+LtqiaO9lmUbWNJSNfp0w/2JTVGEjWrnNHO6Yx3/3x dscw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=EyZDGmMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f185si12881220pgc.744.2022.01.31.03.49.36; Mon, 31 Jan 2022 03:49:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=EyZDGmMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344517AbiA1XqC (ORCPT + 99 others); Fri, 28 Jan 2022 18:46:02 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:47129 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbiA1XqB (ORCPT ); Fri, 28 Jan 2022 18:46:01 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id A380D5803A7; Fri, 28 Jan 2022 18:46:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 28 Jan 2022 18:46:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=xUwCqbFq5p1l8yHGU oeM5CsdqnzYrFZbgfX57fO0sno=; b=EyZDGmMbZXj3HYgnEN8Ymbbo/jc2DIZ3Z Qpu7CUUstdRFb/Dr2e1rD/Hr3ULWiTkOMRz83O9iN4j3RXRzQ8HATWtu7lgHKj/f tQnVQ+tBhqrGFWKlzROuVq2hN2hC3Nj8anWpNHWJ8OYzUK9h1Yf4Um3CyhZkvtRS iFb1sIDVYRwyxqythbFCiZuJrqLiQLK4KTo8Q/m3wKi3vnoiSUbFb7KMcXexnHEp GEyskn3Y11I8Rg/HLXtgn95VNjJ+28TWTuElb5vDbYLJz9S8L0lL8KhSBXU5Guoq 3DPVHqMOga/H3flVKT7zht7E0svjaFKW8cblPLMDaetHuH2Eg6zHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeeigddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvufgjkfhfgggtsehttdertddttddvnecuhfhrohhmpefhihhnnhcuvfhh rghinhcuoehfthhhrghinheslhhinhhugidqmheikehkrdhorhhgqeenucggtffrrghtth gvrhhnpeekveevtdekfedtfefhvdfgleelfefhtdefieetjeejvefghfdufeejkeehgfeu udenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepfhhthhgrihhnsehlihhnuhigqdhmieekkhdr ohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 28 Jan 2022 18:45:57 -0500 (EST) Date: Sat, 29 Jan 2022 10:45:53 +1100 (AEDT) From: Finn Thain To: Tom Rix cc: Joe Perches , Nick Desaulniers , Miguel Ojeda , kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com, nathan@kernel.org, megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] scsi: megaraid: cleanup formatting of megaraid In-Reply-To: <0567fce4-256a-e1b1-dc66-221ba97153d5@redhat.com> Message-ID: <56b761a-6cf9-23ab-c849-eff27e5e831e@linux-m68k.org> References: <20220127151945.1244439-1-trix@redhat.com> <953eb015-4b78-f7b-5dc1-6491c6bf27e@linux-m68k.org> <5554a75f65fddab4de60d61fd503fe73773dafbb.camel@perches.com> <7bff2de309384b7c9ee71ad90881d1e0bbe0a781.camel@perches.com> <0567fce4-256a-e1b1-dc66-221ba97153d5@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Jan 2022, Tom Rix wrote: > A testsuite for the fixers may help with churn > > Any interest or thought on organization ? > Here's one way: 1. Identify some source files that are exemplary (i.e. good style). 2. Run a new script to introduce style mistakes into those files. 3. Run the Reformatter Under Test on those files. 4. Compare the output with the original files. But that's not sufficient to prevent more style patches (churn). We still need a way to avoid wasting everyone's time writing, submitting, reviewing and merging the inevitably incomplete style patches that may contain regressions and cause conflicts. The tooling I would like to see is not a script to introduce style mistakes but an editor for binaries, such that C is not the "source" at all but only an ephemeral representation to make it easier for humans to effect changes to binaries (and debug info, commentary etc.) Nonetheless, perfecting the clang-format tool is a good step towards a better workflow, which I described once before. https://lore.kernel.org/r/alpine.LNX.2.23.453.2010281344120.31@nippy.intranet/