All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ezequiel Garcia <elezegarcia@gmail.com>
To: Peter Senna Tschudin <peter.senna@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
	Joe Perches <joe@perches.com>, David Miller <davem@davemloft.net>,
	shemminger@vyatta.com, mlindner@marvell.com,
	kernel-janitors@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 19/20] drivers/net/ethernet/marvell/skge.c: fix error return code
Date: Wed, 10 Oct 2012 14:40:30 -0300	[thread overview]
Message-ID: <CALF0-+V-SeaaSn++um-JcQx4vV4Bsd4D1c3mki1yNS8kvSGm7w@mail.gmail.com> (raw)
In-Reply-To: <CA+MoWDp8Y0tJoBbz0nxH3Y7J0ur3TJm-dO9OM5BZVBKcbS9TpA@mail.gmail.com>

Hi Peter,

On Wed, Oct 10, 2012 at 2:08 PM, Peter Senna Tschudin
<peter.senna@gmail.com> wrote:
> Stephen and David,
>
> I've sent V2 of the patches and they were all accepted. Thank you.
>
> I've made a template for the commit message, and then copy and paste
> function names from the code. Something like:
>
> -- // --
> The function sky2_probe() return 0 for success and negative value
> for most of its internal tests failures. There are two exceptions
> that are error cases going to err_out*:. For this two cases, the
> function abort its success execution path, but returns non negative
> value, making it dificult for a caller function to notice the error.
>
> This patch fixes the error cases that do not return negative values.
>
> This was found by Coccinelle, but the code change was made by hand.
> This patch is not robot generated.
> ...
> --//--
>
> How useful it was to have the function names when you were analyzing
> the patches? It took me a lot of time to modify the template by copy
> and paste, check if it is correct, then commit. I have some other
> similar patches to submit and I wonder if having the function names in
> the commit message helped you.
>

Having real function names in your commit message won't make it more useful.
IMHO, the problem is you're still using a template commit message,
which produces
a robot-like commit message.

Developers don't like that, we prefer to see a text written by some
guy explaining
why is this patch needed, and what it's fixing/improving from an
overall point of view.
This is not easy and takes much training.

I believe patches should help maintainers, not only add work them,
so it's important to double-triple-check the patch and
double-triple-check the commit message.

I know this is tedious and it'll slow you a bit. But it's a good
thing: it means you are working :-)

Also, in this particular case, where the coccinelle does not fix
something obvious,
then I'd say you should be *extra* careful.

Hope this helps.

    Ezequiel

WARNING: multiple messages have this Message-ID (diff)
From: Ezequiel Garcia <elezegarcia@gmail.com>
To: Peter Senna Tschudin <peter.senna@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
	Joe Perches <joe@perches.com>, David Miller <davem@davemloft.net>,
	shemminger@vyatta.com, mlindner@marvell.com,
	kernel-janitors@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 19/20] drivers/net/ethernet/marvell/skge.c: fix error return code
Date: Wed, 10 Oct 2012 17:40:30 +0000	[thread overview]
Message-ID: <CALF0-+V-SeaaSn++um-JcQx4vV4Bsd4D1c3mki1yNS8kvSGm7w@mail.gmail.com> (raw)
In-Reply-To: <CA+MoWDp8Y0tJoBbz0nxH3Y7J0ur3TJm-dO9OM5BZVBKcbS9TpA@mail.gmail.com>

Hi Peter,

On Wed, Oct 10, 2012 at 2:08 PM, Peter Senna Tschudin
<peter.senna@gmail.com> wrote:
> Stephen and David,
>
> I've sent V2 of the patches and they were all accepted. Thank you.
>
> I've made a template for the commit message, and then copy and paste
> function names from the code. Something like:
>
> -- // --
> The function sky2_probe() return 0 for success and negative value
> for most of its internal tests failures. There are two exceptions
> that are error cases going to err_out*:. For this two cases, the
> function abort its success execution path, but returns non negative
> value, making it dificult for a caller function to notice the error.
>
> This patch fixes the error cases that do not return negative values.
>
> This was found by Coccinelle, but the code change was made by hand.
> This patch is not robot generated.
> ...
> --//--
>
> How useful it was to have the function names when you were analyzing
> the patches? It took me a lot of time to modify the template by copy
> and paste, check if it is correct, then commit. I have some other
> similar patches to submit and I wonder if having the function names in
> the commit message helped you.
>

Having real function names in your commit message won't make it more useful.
IMHO, the problem is you're still using a template commit message,
which produces
a robot-like commit message.

Developers don't like that, we prefer to see a text written by some
guy explaining
why is this patch needed, and what it's fixing/improving from an
overall point of view.
This is not easy and takes much training.

I believe patches should help maintainers, not only add work them,
so it's important to double-triple-check the patch and
double-triple-check the commit message.

I know this is tedious and it'll slow you a bit. But it's a good
thing: it means you are working :-)

Also, in this particular case, where the coccinelle does not fix
something obvious,
then I'd say you should be *extra* careful.

Hope this helps.

    Ezequiel

  reply	other threads:[~2012-10-10 17:40 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-03 16:18 [PATCH 19/20] drivers/net/ethernet/marvell/skge.c: fix error return code Peter Senna Tschudin
2012-10-03 16:18 ` Peter Senna Tschudin
2012-10-03 16:25 ` Stephen Hemminger
2012-10-03 16:25   ` Stephen Hemminger
2012-10-03 18:48   ` David Miller
2012-10-03 18:48     ` David Miller
2012-10-04  9:05   ` Peter Senna Tschudin
2012-10-04  9:05     ` Peter Senna Tschudin
2012-10-04 14:44     ` Stephen Hemminger
2012-10-04 14:44       ` Stephen Hemminger
2012-10-04 17:32       ` Peter Senna Tschudin
2012-10-04 17:32         ` Peter Senna Tschudin
2012-10-04 17:40         ` Stephen Hemminger
2012-10-04 17:40           ` Stephen Hemminger
2012-10-04 18:13           ` Peter Senna Tschudin
2012-10-04 18:13             ` Peter Senna Tschudin
2012-10-04 18:23         ` David Miller
2012-10-04 18:23           ` David Miller
2012-10-04 18:49           ` Peter Senna Tschudin
2012-10-04 18:49             ` Peter Senna Tschudin
2012-10-04 18:54             ` David Miller
2012-10-04 18:54               ` David Miller
2012-10-05  0:09               ` Joe Perches
2012-10-05  0:09                 ` Joe Perches
2012-10-05  5:22                 ` Julia Lawall
2012-10-05  5:22                   ` Julia Lawall
2012-10-05  7:36                   ` Joe Perches
2012-10-05  7:36                     ` Joe Perches
2012-10-05  8:02                     ` Dan Carpenter
2012-10-05  8:02                       ` Dan Carpenter
2012-10-05  8:08                     ` Julia Lawall
2012-10-05  8:08                       ` Julia Lawall
2012-10-10 17:08                       ` Peter Senna Tschudin
2012-10-10 17:08                         ` Peter Senna Tschudin
2012-10-10 17:40                         ` Ezequiel Garcia [this message]
2012-10-10 17:40                           ` Ezequiel Garcia

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=CALF0-+V-SeaaSn++um-JcQx4vV4Bsd4D1c3mki1yNS8kvSGm7w@mail.gmail.com \
    --to=elezegarcia@gmail.com \
    --cc=davem@davemloft.net \
    --cc=joe@perches.com \
    --cc=julia.lawall@lip6.fr \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlindner@marvell.com \
    --cc=netdev@vger.kernel.org \
    --cc=peter.senna@gmail.com \
    --cc=shemminger@vyatta.com \
    /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.