Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2203797pxb; Sun, 30 Jan 2022 08:14:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeDS0igECnZUdV41AFt5H61/L3o8f9Fku4KvUBpYwA9sk63yOTVb89Q6q06eZY42BMy1zP X-Received: by 2002:a50:ee01:: with SMTP id g1mr9490030eds.415.1643559272365; Sun, 30 Jan 2022 08:14:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643559272; cv=none; d=google.com; s=arc-20160816; b=z9otJmGymTp7PZGBiACYRZsNGev1jbckEkMXCTLGW3dvoKinWk7/JiNF6Am8v1kpfX ffDz3M6iXX694Ke2UbywQ8UUZt7w0Bip+fz3WAvFSPl+eM6jfhO9hmpNFjGMvGJKxcSm GAmvhgNzNVWMGsMF4Xy2w6uiEEwi6eQa/HVghIf/ruS+okk1QD/axc+fpcBHRN2OhBnm JjDiEAgv/+lTSIg2qA1+uwNCmpX04H2cBO+9T12lgs3Ewwz6gcWfbL0Z8DYL21Naylag rOFHPd2BVXoq8eIg8llE1Yybc0yd1IbYVCyFg6O7+T6PxZJBgCVMTkZ8XPx0FANJ66Mh oClA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=vVfHkz7u+pwdXHFbkfZI7duzSoGftm/trMa47UcIwGM=; b=DiSU9eJMD7RU12f+TWk9tq9JtXGPI5SiO9VRZNkE7A4rymE2CwTmyYAiJpMgGTEZjI g5J07mZ1WIRSM1Vj+sAZABTlRQ9JlCaUkNkGtUe84IgpY+2ewDvov/onEsNEieFSYQQG LpLht+ZRGv09P+GaV/xqPJJfmYvfK8h2kEWF70LGQ/A3ziXFvQezSW8HfTxPbJTyQxU8 OwxJyLD3ZpJifsr0NEvQnym2yfd/43LwnRzy/OTrOzuj/XCHXJKVUKch/eq4oVmPC9/b oxW7GSCry5Kiqq6nVth8Fw3nk1K+eEgoYu4wJBsoI0cDjl8IJNRwxoR/qmToSoJ0J9RE sOMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 sc20si6523088ejc.946.2022.01.30.08.14.07; Sun, 30 Jan 2022 08:14:32 -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; 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 S242981AbiA1IlX (ORCPT + 99 others); Fri, 28 Jan 2022 03:41:23 -0500 Received: from relay036.a.hostedemail.com ([64.99.140.36]:62202 "EHLO relay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231660AbiA1IlW (ORCPT ); Fri, 28 Jan 2022 03:41:22 -0500 Received: from omf02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 3A86E12033B; Fri, 28 Jan 2022 08:41:20 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA id AF44C80014; Fri, 28 Jan 2022 08:40:52 +0000 (UTC) Message-ID: <7bff2de309384b7c9ee71ad90881d1e0bbe0a781.camel@perches.com> Subject: Re: [PATCH] scsi: megaraid: cleanup formatting of megaraid From: Joe Perches To: Tom Rix , Nick Desaulniers , Finn Thain , Miguel Ojeda Cc: 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 Date: Fri, 28 Jan 2022 00:41:10 -0800 In-Reply-To: References: <20220127151945.1244439-1-trix@redhat.com> <953eb015-4b78-f7b-5dc1-6491c6bf27e@linux-m68k.org> <5554a75f65fddab4de60d61fd503fe73773dafbb.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.90 X-Stat-Signature: ee1qasspf45yao75rasduwrdbsym8kor X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: AF44C80014 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/s1CB6P0Qi+bndabNk32vMkM+MW6PtAhg= X-HE-Tag: 1643359252-762821 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2022-01-27 at 21:31 -0800, Tom Rix wrote: > On 1/27/22 6:43 PM, Joe Perches wrote: > > On Thu, 2022-01-27 at 16:32 -0800, Tom Rix wrote: > > > On 1/27/22 2:47 PM, Nick Desaulniers wrote: > > > > + Miguel (the clang-format maintainer), Joe (checkpatch maintainer) > > > > These criticisms are worth reviewing. > > > > > > > > On Thu, Jan 27, 2022 at 2:38 PM Finn Thain wrote: > > > > > On Thu, 27 Jan 2022, trix@redhat.com wrote: > > > > > > > > > > > From: Tom Rix > > > > > > > > > > > > checkpatch reports several hundred formatting errors. Run these files > > > > > > through clang-format and knock off some of them. > > > > > > > > > > > That method seems like a good recipe for endless churn unless checkpatch > > > > > and clang-format really agree about these style rules. > > > > > > > > > > Why use checkpatch to assess code style, if we could simply diff the > > > > > existing source with the output from clang-format... but it seems that > > > > > clang-format harms readability, makes indentation errors and uses > > > > > inconsistent style rules. Some examples: > > > Problems with clang-format should be fixed, I'll take a look. > > > > > > I was reviewing this file for another isseue and could not get past how > > > horredously bad it was and really did not want to manually fix the 400+ > > > formatting errors.? I will drop this patch and use the use these files > > > to verify the .clang-format . > > I think this is more an issue with clang-format than with checkpatch. > > > > If you have specific issues with what checkpatch reports for this > > file (or any other file), let me know. > > Yes, I agree. Its a clang-format problem. > > I will be looking to minimize the .clang-format settings to only those > that agree with checkpatch. > > Then add settings back in later if their problems can be worked out. Another option would be to use: ./scripts/checkpatch.pl -f --fix[-inplace] [--types=] where types is an optional list of specific things to change see: ./scripts/checkpatch.pl --list-types --verbose to show the possible types. Only some of these types can be changed with --fix or --fix-inplace If using checkpatch to change formatting, it sometimes can be useful to run checkpatch --fix multiple times on the same file as a checkpatch --fix can create a change than checkpatch will suggest should itself be fixed. Of course another option is to do nothing as many will complain, sometimes senselessly, about 'churn'.