Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2255541pxm; Fri, 4 Mar 2022 12:26:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx8RPFCdf/NAdQ1MooJ71PQPfiIwc0+vYHUGNVuMyGDt/n2/+JA1uNDu/eNPbA7Bndjve/ X-Received: by 2002:a17:902:9046:b0:14d:5c9d:e7df with SMTP id w6-20020a170902904600b0014d5c9de7dfmr175250plz.65.1646425609365; Fri, 04 Mar 2022 12:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646425609; cv=none; d=google.com; s=arc-20160816; b=kSLvnCfhIovnUA1zGt/FndarHGYB/27cXsPjFppMUtSnqQ3BxrrBeOb/Pgb4SIVtax c2boWAH4CKe+9m5lrB7cWyCC53L1MgohSNGcrh45ix604l+FZD7pM41PPzfz0F2tkQOt ZmgL8pkqB99RWvuqY/WVjXGwYG45GRDnUSmLpf0e3P287mDXrKEh/5A0hx7q9MRSQD+s 6liYrdYBcEEL/e10pm3HsAOs5gmw9ijQG0PF6HdIxjV9l6ajxxdZSXElci+4fQ10qUi/ ZSRwcMT54YJreYMZOwW3XmyomXbBQ9b6GDk+KgSPv0LeWnHuVl2FI0Gfa1xsX3W4lDo2 ++qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:date :mime-version:references:in-reply-to:cc:to:from:subject:message-id; bh=ycr1IWf/HcdHScostiArvNNP4wDae5IOlrh+AmCdiug=; b=Rlsa1ecbxjrNHrGtk4l58MRRQ8AYQ1OEqOyVPyfs4SBmy6UVKQS2jp11Di06rjMfpR T8/MJF5ft7YT/ci8SrX+Y9C+srkYKPRwyORCJNKrglMpvS90LjrXRGu3vxzAhAACFZwL v2dVXLPThvsADAbuDCeSDk6aOjke6mhQ8g1avqjJ3fig9phaac33tJ1m+uaGC8Di91py xtVKA8AS/pS1xc4mhHe+llbV2tXPSvh4Z/IiH8Eql1kevLHc5At4NJ3tZRQEaBG3ZCey SZYmQzFi8uJXVoCsEb1ExqK5ZO3dppFYDrCjuqCcGeqMoq9hoF/i3yRovqTB5HSz6+cd CEOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g10-20020a17090a714a00b001bd14e030c6si391474pjs.158.2022.03.04.12.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:26:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F24425E5E7; Fri, 4 Mar 2022 11:35:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233395AbiCDRiE (ORCPT + 99 others); Fri, 4 Mar 2022 12:38:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231807AbiCDRiC (ORCPT ); Fri, 4 Mar 2022 12:38:02 -0500 Received: from relay3.hostedemail.com (relay3.hostedemail.com [64.99.140.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 550B353B5B; Fri, 4 Mar 2022 09:37:14 -0800 (PST) Received: from omf11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 0D6B625AC1; Fri, 4 Mar 2022 17:37:11 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA id 8345420033; Fri, 4 Mar 2022 17:36:54 +0000 (UTC) Message-ID: Subject: Re: [PATCH] scsi: megaraid: cleanup formatting of megaraid From: Joe Perches To: Miguel Ojeda , Tom Rix Cc: Finn Thain , Konrad Wilhelm Kleine , Bart Van Assche , kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com, Nathan Chancellor , Nick Desaulniers , megaraidlinux.pdl@broadcom.com, scsi , linux-kernel , llvm@lists.linux.dev In-Reply-To: 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> <95f5be1d-f5f3-478-5ccb-76556a41de78@linux-m68k.org> <7368bc3ea6dece01004c3e0c194abb0d26d4932b.camel@perches.com> <9dc86e74-7741-bb8e-bbad-ae96cebaaebc@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 Date: Fri, 04 Mar 2022 09:36:47 -0800 User-Agent: Evolution 3.40.4-1ubuntu2 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 8345420033 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: 1c6ug8i9pqxuqjhad1yefjg3b57awop5 X-Rspamd-Server: rspamout01 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18PthH+crZJzJrKjbbP7DvDY/cONgYvkvc= X-HE-Tag: 1646415414-943187 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 On Fri, 2022-03-04 at 15:02 +0100, Miguel Ojeda wrote: > On Fri, Mar 4, 2022 at 2:46 PM Tom Rix wrote: > > > > The churn level will be very high. > > Nobody is planning to reformat the entire kernel, at least not until > the tool is close enough to the kernel style, which will take a while. I rather doubt clang-format will ever be 'close enough'. A human's sense of 'taste' for reading code is very different than what an automated tool produces. For instance, clang-format does a quite poor job when comments are intermixed with definitions. Also, try looking at the changes clang-format does on a file chosen at random: $ clang-format -i drivers/hid/hid-sony.c $ git diff drivers/hid/hid-sony.c [...] o columnarized definitions -> not columnarized o odd line continuation placement using spaces and not tabs before \ o odd array definition layouts o per line definitions with comments poorly laid out o individual line definitions rewrapped o enum definitions on multiple lines compressed to single lines o u8 array definition layouts where the first element has a separate meaning than the subsequent elements are compressed and made difficult to understand I think _some_ clang-format output is ok, but the concept of enabling/disabling specific reformatting bits would be quite useful. And sprinkling "clang-format on/off" lines in the code is not good. Any control codes that determine when source code layout might be immutable or allowed to be modified could be should be tool name agnostic.