Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1454334pxm; Thu, 3 Mar 2022 18:42:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIrPqS/l5xL9A9K/3vMugOTATKLNW0E7RxL6F/Kb5cTv3YS1twgdMBH6wKJe++Vi2u/eKD X-Received: by 2002:a17:906:a152:b0:6cd:3098:18c9 with SMTP id bu18-20020a170906a15200b006cd309818c9mr29604850ejb.422.1646361738832; Thu, 03 Mar 2022 18:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646361738; cv=none; d=google.com; s=arc-20160816; b=jqTmKE/iA5g+aPYwh3JCks2hMD+zCFzPV5ZVHIKv1rfpKBEkYwsLooEpOLwgqNbvzD UuPCtJ1JnAOdFQDWG4Oz+POMH0u8H0gx51xcToBE/m5C/mivwdkwgj7nQS8AZpd2cUtG URhusHfWumeNBaOBOjUOja/LBVH72tSUjZ12F4soqhbiIk+vx7kHsn6U3aDPDC2ZCb/O x0tJx+5Dail+5cNq31yn/W2pKcIIGx1+lYxDzxizhFSIFCgilFN0fcheRcX9jFNb8dJV sgtjgIFWqJIQPD68j+a8I/9IC/hMNP30uU46Z3rBBB943sGjffdaxqhdk+MgAVFozriT uWRA== 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=LJYVvuKLawnkE6Wm/j6OKnAtK1dk2wwP7VL303McoIQ=; b=wQtBcRTQsLAMgPRYF0Er0hYcC5CQTgSnI6EdwVxb1z959YITqUeopC05gsLV/J3hIP xu1qG1pXNxCvlzzblVEKEjYUfUbSF/0LS7Yf3NIVa2qhngpgkojI3XURYdBXccQThDZk hD5SkV2eQHeXVYeM10v8U5UjB23emA31LDBlP0Wli2LxImB0AjG2TQtiGb6aerhFhGGj hxqriLPNdqR+rL6aq+n5nFybwSVEw+euRDB1EvxXZ1bktFEbDU2jrFhqR9+xHTsY8J8e bwtUOaCv1kK5Fp1Kkd3lhFnMxFdz6UyUem/5w+la5rFnAlHn/ULerX/oPSYVqxG7eBma Ybww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=HHiFURfS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq4-20020a1709073f0400b006da6550217bsi3022519ejc.973.2022.03.03.18.41.56; Thu, 03 Mar 2022 18:42:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=HHiFURfS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236714AbiCCWpK (ORCPT + 99 others); Thu, 3 Mar 2022 17:45:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237084AbiCCWpJ (ORCPT ); Thu, 3 Mar 2022 17:45:09 -0500 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD04F15C1A7; Thu, 3 Mar 2022 14:44:21 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 6E5225807C5; Thu, 3 Mar 2022 17:44:20 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 03 Mar 2022 17:44:20 -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=fm2; bh=LJYVvuKLawnkE6Wm/ j6OKnAtK1dk2wwP7VL303McoIQ=; b=HHiFURfSb0KxCAm5OFX1e4gkqvdZqugiY xWJkml7nJNE0fPPncMw3UCvlzaG/5rEDOleTqYWfBy4Y/Vh4BU1Hdc+iECf3Le5B pTj4f0sxGYl5B1ogjKd2V054S9P+8LULe4X//FWdkEonYD4gVDVYNqCp/9BPr0Cv onaCbkbLHUikPTpltEXJQFWEl9qO9USnoglYdbpJXwS4TdlmKoiT3QS+ckiWndE6 LADM1iWhAc/D8R/pAHDkPGUAraFcHa+0+I7zgg+z10x+BJ18suivOuZg1lquiPJJ wLKArw2GFmRH5TbmQUxN/4mqQNKmserUyMyghIcCxBmK9F95cXYJA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddruddtjedgtdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffujgfkfhggtgesthdtredttddtvdenucfhrhhomhephfhinhhnucfv hhgrihhnuceofhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgheqnecuggftrfgrth htvghrnhepffetffekiefhfeevfeetuedtteeugeelhedvueejhefftdejieduleetffev ffeunecuffhomhgrihhnpehgihhthhhusgdrtghomhdpkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepfhhthhgrihhn sehlihhnuhigqdhmieekkhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Mar 2022 17:44:17 -0500 (EST) Date: Fri, 4 Mar 2022 09:44:12 +1100 (AEDT) From: Finn Thain To: Konrad Wilhelm Kleine cc: Tom Rix , Joe Perches , Bart Van Assche , kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com, nathan@kernel.org, ndesaulniers@google.com, 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: Message-ID: <95f5be1d-f5f3-478-5ccb-76556a41de78@linux-m68k.org> References: <20220127151945.1244439-1-trix@redhat.com> <0adde369-3fd7-3608-594c-d199cce3c936@redhat.com> <46441b86-1d19-5eb4-0013-db1c63a9b0a5@redhat.com> <8dd05afd-0bb9-c91b-6393-aff69f1363e1@redhat.com> <233660d0-1dee-7d80-1581-2e6845bf7689@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, On Thu, 3 Mar 2022, Konrad Wilhelm Kleine wrote: > On Thu, 3 Mar 2022 at 09:40, Finn Thain wrote: > > > On Wed, 2 Mar 2022, Tom Rix wrote: > > > > > >>> Long term, it would be good have a reliable way to automatically > > > >>> fix either new files or really broken old files. > > > >> That's really a maintainer preference no? > > > >> > > > >> Especially so for any automation. > > > > > > > > In practice everything is up to the maintainer. > > > > > > > > If some maintainer wants fix their formatting then clang-format > > > > should just work > > > > > > > > It isn't likely they will have time to hand fix every file. > > > > > > A follow up issue in the clang project has been raised by Konrad, > > > here > > > > > > https://github.com/llvm/llvm-project/issues/54137 > > > > > > > Why request a "leave" option for every style rule? Why not just a > > "leave" option for the most contentious rules? > > > > Getting to the point that every style option can be disabled > individually is not an operation done in one go. I plan on presenting > the changes required to exactly one style option and from there I'm all > ears if you have style options that you consider "contentious". Sure, I'll provide an example of that below in case you're interested in what I happen to find contentious. But this isn't about my taste. The issue is really about removing an obstacle to wider adoption of clang-formt. Therefore, shouldn't you be asking, what style rules have already proven to be contentious within the project? You can look to kernel subsystem style rules for examples of that. E.g. some might argue that comments should always be left unmolested (where they exist for the benefit of human readers and not tooling). Others might argue that they should always be changed from, /* * this style * of multiline comment */ to /* this style * of multiline comment */ For another example, the mailing lists recently saw another style rule difference between subsystems: https://lore.kernel.org/all/20220301055231.GI2812@kadam/ Joe said, in effect, "leave" whereas others seem to have different views. Finally, here's an example that I personally found contentious. drivers/scsi/NCR5380.c line 2306: dsprintk(NDEBUG_ABORT, instance, "abort: removed %p from sense queue\n", cmd); Note the spaces (for alignment) following the tabs (for scope). I mention this example not because I expect the world to "wake up and smell the coffee" one day and embrace spaces-after-tabs. I mention it because I expect the tabs/spaces/both issue to remain contentious indefinitely (within any sufficiently large project). I can think of another good example (line wrap) but I'll stop here.