All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilya Dryomov <idryomov@gmail.com>
To: Ioana Ciornei <ciorneiioana@gmail.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>,
	Alex Elder <elder@ieee.org>
Subject: Re: [PATCH 0/6] net: ceph: messenger: code cleanup
Date: Wed, 27 Jan 2016 12:17:18 +0100	[thread overview]
Message-ID: <CAOi1vP-Lqj4iA+cjFY1D3ERMdCyFxwkXTGEPpY2_oNJ9D-4PXA@mail.gmail.com> (raw)
In-Reply-To: <cover.1453853617.git.ciorneiioana@gmail.com>

On Wed, Jan 27, 2016 at 1:43 AM, Ioana Ciornei <ciorneiioana@gmail.com> wrote:
>
> This patchset makes some small code cleanup on the messenger code from net/ceph.
> Most of the patches are a result of running checkpatch.pl on
> net/ceph/messenger.c
>
>
> Ioana Ciornei (6):
>   net: ceph: messenger: remove unnecessary blank spaces
>   net: ceph: messenger: fix coding style comparison to NULL
>   net: ceph: messenger: add blank line after declarations
>   net: ceph: messenger: properly align function parameters
>   net: ceph: messenger: change printk to pr_warn
>   net: ceph: messenger: add braces to all arms of conditional statement
>
>  net/ceph/messenger.c | 207 ++++++++++++++++++++++++++-------------------------
>  1 file changed, 107 insertions(+), 100 deletions(-)

Hi Ioana,

Most of above (especially patch 4/6) just clutters the history (think
"git blame" output) and, more importantly, complicates backporting of
future fixes to older kernels for no benefit at all.

There is a reason checkpatch.pl is called "check" "patch" - it is to be
run on patches, not files, with pretty much the only exception to that
being code in drivers/staging.  In certain cases, it might be OK to use
it on existing files to fix what it classifies as errors, but fixing
warnings or so called checks does more harm than good in most cases.

Thanks,

                Ilya

      parent reply	other threads:[~2016-01-27 11:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27  0:43 [PATCH 0/6] net: ceph: messenger: code cleanup Ioana Ciornei
2016-01-27  0:43 ` [PATCH 1/6] net: ceph: messenger: remove unnecessary blank spaces Ioana Ciornei
2016-01-27  0:43 ` [PATCH 2/6] net: ceph: messenger: fix coding style comparison to NULL Ioana Ciornei
2016-01-27  0:43 ` [PATCH 3/6] net: ceph: messenger: add blank line after declarations Ioana Ciornei
2016-01-27  0:43 ` [PATCH 4/6] net: ceph: messenger: properly align function parameters Ioana Ciornei
2016-01-27  0:43 ` [PATCH 5/6] net: ceph: messenger: change printk to pr_warn Ioana Ciornei
2016-01-27  0:43 ` [PATCH 6/6] net: ceph: messenger: add braces to all arms of conditional statement Ioana Ciornei
2016-01-27 11:17 ` Ilya Dryomov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOi1vP-Lqj4iA+cjFY1D3ERMdCyFxwkXTGEPpY2_oNJ9D-4PXA@mail.gmail.com \
    --to=idryomov@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=ciorneiioana@gmail.com \
    --cc=elder@ieee.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.