public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Fwd: PNP: Lindent all source files
@ 2007-07-26 23:05 Simon Arlott
  2007-07-26 23:31 ` Kok, Auke
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Simon Arlott @ 2007-07-26 23:05 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: bjorn.helgaas

Does anyone ever review what Lindent does? There's a fix up patch after this 
but it missed this at the very top of the patch and the labels.

> Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9dd78466c956ac4b4f38e12032dc4249ccf57ad1
> Commit:     9dd78466c956ac4b4f38e12032dc4249ccf57ad1
> Parent:     8ec3cf7d29aef773eee5bc6cd9b0fa4d3fb42480
> Author:     Bjorn Helgaas <bjorn.helgaas@hp.com>
> AuthorDate: Thu Jul 26 10:41:20 2007 -0700
> Committer:  Linus Torvalds <torvalds@woody.linux-foundation.org>
> CommitDate: Thu Jul 26 11:35:20 2007 -0700
> 
>     PNP: Lindent all source files
>     
> diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c
> index dd6384b..a379a38 100644
> --- a/drivers/pnp/card.c
> +++ b/drivers/pnp/card.c
> @@ -13,26 +13,28 @@
> -					if (compare_pnp_id(dev->id, drv_id->devs[i].id)) {
> +					if (compare_pnp_id
> +					    (dev->id, drv_id->devs[i].id)) {

Leaving only the function name on a seperate line? How is that better?


> @@ -320,7 +330,7 @@ found:
>  
>  	return dev;
>  
> -err_out:
> +      err_out:
>  	dev->dev.driver = NULL;
>  	dev->card_link = NULL;
>  	return NULL;

Six spaces before a label that originally had no indentation?


The spaces it uses on lines after if (which happens all over the place) 
appear to go against CodingStyle's:
"Outside of comments, documentation and except in Kconfig, spaces are never
used for indentation, and the above example is deliberately broken."

-- 
Simon Arlott

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

* Re: Fwd: PNP: Lindent all source files
  2007-07-26 23:05 Fwd: PNP: Lindent all source files Simon Arlott
@ 2007-07-26 23:31 ` Kok, Auke
  2007-07-26 23:40 ` Jesper Juhl
  2007-07-27 16:57 ` Fwd: " Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Kok, Auke @ 2007-07-26 23:31 UTC (permalink / raw)
  To: Simon Arlott; +Cc: Linux Kernel Mailing List, bjorn.helgaas

Simon Arlott wrote:
> Does anyone ever review what Lindent does? There's a fix up patch after this 
> but it missed this at the very top of the patch and the labels.

Lindent fails on several things really badly (case/labels mostly), but it is 
unmaintained and nobody seems to want to make it understand 
--i-want-linus-style-dammit options :(

Auke

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

* Re: PNP: Lindent all source files
  2007-07-26 23:05 Fwd: PNP: Lindent all source files Simon Arlott
  2007-07-26 23:31 ` Kok, Auke
@ 2007-07-26 23:40 ` Jesper Juhl
  2007-07-27 16:57 ` Fwd: " Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Jesper Juhl @ 2007-07-26 23:40 UTC (permalink / raw)
  To: Simon Arlott; +Cc: Linux Kernel Mailing List, bjorn.helgaas

On 27/07/07, Simon Arlott <simon@fire.lp0.eu> wrote:
> Does anyone ever review what Lindent does? There's a fix up patch after this
> but it missed this at the very top of the patch and the labels.
>
Lindent is by no means perfect and if you use it you should always
review the changes it makes by hand.
Feel free to fix it up/improve it.

-- 
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

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

* Re: Fwd: PNP: Lindent all source files
  2007-07-26 23:05 Fwd: PNP: Lindent all source files Simon Arlott
  2007-07-26 23:31 ` Kok, Auke
  2007-07-26 23:40 ` Jesper Juhl
@ 2007-07-27 16:57 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2007-07-27 16:57 UTC (permalink / raw)
  To: Simon Arlott; +Cc: Linux Kernel Mailing List

On Thursday 26 July 2007 05:05:54 pm Simon Arlott wrote:
> Does anyone ever review what Lindent does? There's a fix up patch after this 
> but it missed this at the very top of the patch and the labels.

I think you answered your own question.

Did I miss some things in the fixup patch?  Yes; unfortunately,
I'm not as consistent as the machine.

I started another fixup patch with the things you mentioned.
Let me know if you find others, and I'll fix them, too.  I'll
probably wait for the next cycle to do more fixups.

Bjorn


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

end of thread, other threads:[~2007-07-27 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-26 23:05 Fwd: PNP: Lindent all source files Simon Arlott
2007-07-26 23:31 ` Kok, Auke
2007-07-26 23:40 ` Jesper Juhl
2007-07-27 16:57 ` Fwd: " Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox