netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 4/4] ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes
@ 2007-10-16 21:24 akpm
  2007-10-18  2:37 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: akpm @ 2007-10-16 21:24 UTC (permalink / raw)
  To: jeff; +Cc: netdev, akpm, Emilian.Medve, davem, galak, leoli, paulus

From: Andrew Morton <akpm@linux-foundation.org>

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Emil Medve <Emilian.Medve@Freescale.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Kumar Gala <galak@gate.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/net/ucc_geth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/ucc_geth.c~ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes drivers/net/ucc_geth.c
--- a/drivers/net/ucc_geth.c~ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes
+++ a/drivers/net/ucc_geth.c
@@ -3454,7 +3454,7 @@ static int ucc_geth_rx(struct ucc_geth_p
 	u16 length, howmany = 0;
 	u32 bd_status;
 	u8 *bdBuffer;
-	struct net_device * dev;
+	struct net_device *dev;
 
 	ugeth_vdbg("%s: IN", __FUNCTION__);
 
_

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 4/4] ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes
  2007-10-16 21:24 [patch 4/4] ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes akpm
@ 2007-10-18  2:37 ` David Miller
  2007-10-18  2:47   ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2007-10-18  2:37 UTC (permalink / raw)
  To: akpm; +Cc: jeff, netdev, Emilian.Medve, galak, leoli, paulus

From: akpm@linux-foundation.org
Date: Tue, 16 Oct 2007 14:24:12 -0700

> From: Andrew Morton <akpm@linux-foundation.org>
> 
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Emil Medve <Emilian.Medve@Freescale.com>
> Cc: Jeff Garzik <jeff@garzik.org>
> Cc: Kumar Gala <galak@gate.crashing.org>
> Cc: Li Yang <leoli@freescale.com>
> Cc: Paul Mackerras <paulus@samba.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Please help my eyes, I can't see the fix:

> @@ -3454,7 +3454,7 @@ static int ucc_geth_rx(struct ucc_geth_p
>  	u16 length, howmany = 0;
>  	u32 bd_status;
>  	u8 *bdBuffer;
> -	struct net_device * dev;
> +	struct net_device *dev;
>  
>  	ugeth_vdbg("%s: IN", __FUNCTION__);
>  

This might be a coding style fix, as far as I can see, but I can't
imagine how it can effect compilation at all.  It just removes a space
between the "*" and "dev" but that space is harmless.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 4/4] ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes
  2007-10-18  2:37 ` David Miller
@ 2007-10-18  2:47   ` Andrew Morton
  2007-10-18  2:50     ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2007-10-18  2:47 UTC (permalink / raw)
  To: David Miller; +Cc: jeff, netdev, Emilian.Medve, galak, leoli, paulus

On Wed, 17 Oct 2007 19:37:21 -0700 (PDT) David Miller <davem@davemloft.net> wrote:

> From: akpm@linux-foundation.org
> Date: Tue, 16 Oct 2007 14:24:12 -0700
> 
> > From: Andrew Morton <akpm@linux-foundation.org>
> > 
> > Cc: "David S. Miller" <davem@davemloft.net>
> > Cc: Emil Medve <Emilian.Medve@Freescale.com>
> > Cc: Jeff Garzik <jeff@garzik.org>
> > Cc: Kumar Gala <galak@gate.crashing.org>
> > Cc: Li Yang <leoli@freescale.com>
> > Cc: Paul Mackerras <paulus@samba.org>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> 
> Please help my eyes, I can't see the fix:
> 
> > @@ -3454,7 +3454,7 @@ static int ucc_geth_rx(struct ucc_geth_p
> >  	u16 length, howmany = 0;
> >  	u32 bd_status;
> >  	u8 *bdBuffer;
> > -	struct net_device * dev;
> > +	struct net_device *dev;
> >  
> >  	ugeth_vdbg("%s: IN", __FUNCTION__);
> >  
> 
> This might be a coding style fix, as far as I can see, but I can't
> imagine how it can effect compilation at all.  It just removes a space
> between the "*" and "dev" but that space is harmless.

uh, this is fallout from the akpmbot.

- Someone sent a patch which I named foo.patch

- When I applied it I saw valid checkpatch warnings, so I queed a patch to
fix them, called foo-checkpatch-fixes.patch with the intention that it later be
folded into foo.patch

- You merged foo.patch.  But foo-checkpatch-fixes.patch still applied, so I
retained it.

- I sent you the runt foo-checkpatch-fixes.patch.

Normally when this happens I'll just curse the original patch author and
drop foo-checkpatch-fixes.patch.  This time I didn't notice.

(Perhaps people should be adding a checkpatch run to their git-commit
scripts..)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 4/4] ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes
  2007-10-18  2:47   ` Andrew Morton
@ 2007-10-18  2:50     ` Andrew Morton
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2007-10-18  2:50 UTC (permalink / raw)
  To: David Miller, jeff, netdev, Emilian.Medve, galak, leoli, paulus

On Wed, 17 Oct 2007 19:47:59 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:

> - When I applied it I saw valid checkpatch warnings, so I queed a patch to
> fix them, called foo-checkpatch-fixes.patch with the intention that it later be
> folded into foo.patch

incidentally, the reason I do it this way is to attempt to educate
patch originators into running checkpatch, rather than out of sheer joy for
the task.  Hopefully I'll have to do this less often as time passes.

box:/usr/src/25> ls -lR patches|grep checkpatch-fixes | wc -l 
38


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-18  2:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16 21:24 [patch 4/4] ucc_geth-fix-build-break-introduced-by-commit-09f75cd7bf13720738e6a196cc0107ce9a5bd5a0-checkpatch-fixes akpm
2007-10-18  2:37 ` David Miller
2007-10-18  2:47   ` Andrew Morton
2007-10-18  2:50     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).