Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2734931pxb; Mon, 31 Jan 2022 03:12:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUVI8P1YoH6t8odYTzYk6qQiFybO84LcVy/TzNtIQ7XZkkVE0vDkOLdVfBzquCkAXogsqA X-Received: by 2002:a17:90a:f0ce:: with SMTP id fa14mr33493891pjb.212.1643627530183; Mon, 31 Jan 2022 03:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627530; cv=none; d=google.com; s=arc-20160816; b=SNe76lKyKSx7MyiJFmSpDSnh1d06c+g8vlYBN6mIioDMAknj0wKwwuUlN8biJEeepB DFYrQLEYQWqG8hMik4ieCycHMMBSNDMIhITXIRavA4i2f3fZIlCdh136F8xYznO5Gjz3 uc2wqXK4a4nOhmajTaisWVwxlze9rOafhXltBjr0+PsuPH9XOtJfzyefbqqn5+hJibyy qHPTxGc7XJ8j7hrv77tlZDa4plmCtvH6m2ySQeJbsWu0MQMEO8MPkDTYzqadPV/FWWQo qfW9T3s2qt5J+x5i6oNRvLJPY3PMRdzxkK4szfYjJf1Id9TLiG8zOF1FMuPN3T+7hhVx 9nYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=R1MzpLEHNt998Fp+0Cju8ZrRTa2fyOAxv9mE2xz2mj8=; b=G05IteXv2MTnHS1cOgCpgt5LrOyZg70b9yUVIYKIxsVruzbMo/dD2Zxgi4ok0gpuFk aSqtTrPNgoYrUYH2Kxm/7qLdKK17ppwZl+fi6/J+5BIZQU5Uc9DzlYEIVGet1LdPFRC8 8e3tjxy2SO28/jzvUsGTBJELYy2OAvdyaKQODLbUoGGkA/nZDhC0OlK+P8RApjLeyfEy ZWhVoj2yCyM8GMaqeDk5XE33fDDppB28TUWnajy1OF47M/zQwoWJqpeOMexwJuBWZZgC mkBf0Ss3C82322UwzfByvgOj8fsZG1DnNQWkJHp8j/x6IHbHaBGv5x/wUNWjIKYUnyPQ 1+LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="RHCWMW/M"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d127si12873848pgc.215.2022.01.31.03.11.59; Mon, 31 Jan 2022 03:12:10 -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=@redhat.com header.s=mimecast20190719 header.b="RHCWMW/M"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349563AbiA1Pai (ORCPT + 99 others); Fri, 28 Jan 2022 10:30:38 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:33396 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349549AbiA1Pah (ORCPT ); Fri, 28 Jan 2022 10:30:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643383836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R1MzpLEHNt998Fp+0Cju8ZrRTa2fyOAxv9mE2xz2mj8=; b=RHCWMW/M80xhF6VAmDFK9fitsDJxxnM3wnsaF79bbSMisX8fwMzm1bk+tPquR9uORVHjTc 0NDlFeZhnCxo04d1Zw9T5TgSxGwzf8Dq1vKQTL5iy/KBE7NqejNIknYHX5uSslUkbJ6WGb JnezzaM0jBbGhj0AF669oPbbHkZc4tY= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-593-cJn6qmtYPCGS7kgdcdFd_w-1; Fri, 28 Jan 2022 10:30:35 -0500 X-MC-Unique: cJn6qmtYPCGS7kgdcdFd_w-1 Received: by mail-oo1-f72.google.com with SMTP id a7-20020a4ad5c7000000b002dacfc3d40cso3325080oot.9 for ; Fri, 28 Jan 2022 07:30:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=R1MzpLEHNt998Fp+0Cju8ZrRTa2fyOAxv9mE2xz2mj8=; b=j0q1Un2orT7dSxfVWgPR16xWsJRdClPrtb9HbtflGM7Vn3vxfet6E7/gLJGMQlVyBs aUvIMc84EdAr9N4YFpR7kJyBP5t2hvMR1Je7fbVqok024YOb3lrAyYyAIo6QNbHZB4jd 0dcqNeCGQkGMNyUfjM+iw8JlCwcaQVVS5e7HwRCwppqbow7xkwYrkhZ0tobMFO9KohJn MvqckN+rdzG1BW/waKQ60xnZoYYnM1K6FO4oh5ex42/hoaGoGdvnxTqcgFdWU4WKt5Bb Joy9it3+iL8sa7s7MPy+fmpJT4pmMtdKuY24nMcbeTbYi9zOvCDjjnA7pruIzZNd2kzq JOiw== X-Gm-Message-State: AOAM533ktk3Pk8wfEhosUOTAjiH5xkeTvyRI+FAvZnuS2MhCgu+zT3Dx SYoPMKqpcYue7Y5tdUQRdDQG+RdJG0tdlewqy0FyEwUsKgfPhftZm7Iz4SjBQF/IYQzoeIVkzTc rzq80+CQEwB8yk4YTmwba1ZgL X-Received: by 2002:a9d:69c1:: with SMTP id v1mr5199551oto.134.1643383834425; Fri, 28 Jan 2022 07:30:34 -0800 (PST) X-Received: by 2002:a9d:69c1:: with SMTP id v1mr5199538oto.134.1643383834219; Fri, 28 Jan 2022 07:30:34 -0800 (PST) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id ay14sm13152476oib.5.2022.01.28.07.30.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jan 2022 07:30:33 -0800 (PST) Subject: Re: [PATCH] scsi: megaraid: cleanup formatting of megaraid To: Joe Perches , 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 References: <20220127151945.1244439-1-trix@redhat.com> <953eb015-4b78-f7b-5dc1-6491c6bf27e@linux-m68k.org> <5554a75f65fddab4de60d61fd503fe73773dafbb.camel@perches.com> <7bff2de309384b7c9ee71ad90881d1e0bbe0a781.camel@perches.com> From: Tom Rix Message-ID: <0567fce4-256a-e1b1-dc66-221ba97153d5@redhat.com> Date: Fri, 28 Jan 2022 07:30:31 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <7bff2de309384b7c9ee71ad90881d1e0bbe0a781.camel@perches.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/22 12:41 AM, Joe Perches wrote: > 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'. A testsuite for the fixers may help with churn Any interest or thought on organization ? I can take stab at one. Tom > > >