Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Arnaud Patard <apatard@mandriva.com>
Cc: wuzhangjin@gmail.com, linux-mips@linux-mips.org
Subject: Re: [PATCH] loongson 2f: Add gpio/gpioilb support
Date: Thu, 29 Apr 2010 16:46:23 +0100	[thread overview]
Message-ID: <20100429154623.GA25765@linux-mips.org> (raw)
In-Reply-To: <m3iq7awiqi.fsf@anduin.mandriva.com>

On Thu, Apr 29, 2010 at 02:23:01PM +0200, Arnaud Patard wrote:

> > The above blank line is at the end of the file, we can remove it,
> > otherwise, "git am" will complain about it.
> 
> Then, please, either fix your tool or fix it yourself. Last time I've
> looked at Documentation/SubmittingPatches, it was not
> mentionned. Moreover, checkpatch.pl is not complaining. If you really
> think, it's a must have, ask to fix checkpatch.pl first otherwise it's
> going to be missed again and again.

git-am will complain about it - with a not terribly helpful message that
does not mention the offending file.  I've configured git to strip
trailing whitespace and blank lines automatically.  In a patch series
this could lead to the problem where a subsequent patch fails to apply
because got modified.

>  arch/mips/Kconfig                        |    2      2 +     0 -     0 !
>  arch/mips/include/asm/mach-lemote/gpio.h |   33      33 +    0 -     0 !
>  arch/mips/loongson/common/Makefile           |    2  2 +     0 -     0 !
>  arch/mips/loongson/common/gpio.c             |  128  128 +   0 -     0 !
>  arch/mips/loongson/common/platform.c         |   25  25 +    0 -     0 !
>  5 files changed, 190 insertions(+)

Your diffstat doesn't match what's in the patch:

 arch/mips/Kconfig                          |    2 
 arch/mips/loongson/common/gpio.c           |  140 ++++++++++++++++++++++++++++
 arch/mips/loongson/common/Makefile         |    1 
 arch/mips/include/asm/mach-loongson/gpio.h |   35 +++++++
 4 files changed, 178 insertions(+), 0 deletions(-)

So what's wrong, diffstat or patch?

  Ralf

      reply	other threads:[~2010-04-29 15:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-29  9:58 [PATCH] loongson 2f: Add gpio/gpioilb support Arnaud Patard
2010-04-29 12:11 ` Wu Zhangjin
2010-04-29 12:23   ` Arnaud Patard
2010-04-29 15:46     ` Ralf Baechle [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=20100429154623.GA25765@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=apatard@mandriva.com \
    --cc=linux-mips@linux-mips.org \
    --cc=wuzhangjin@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox