From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Peter Grayson <pgrayson@realmsys.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] jffs2 whitespace
Date: Sun, 25 Sep 2005 17:06:35 +0200 [thread overview]
Message-ID: <20050925150635.GD28978@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <1127433949.6937.30.camel@localhost.localdomain>
On Thu, 22 September 2005 18:05:49 -0600, Peter Grayson wrote:
>
> I'm not sure if anyone else really cares about these kind of cleanup
> changes, but just in case someone does, here is a patch that fixes up
> several whitespace issues in the jffs2 code.
>
> I believe all of these changes are consistent with what the mtd
> developers like to see in the code. There seems to be a lot of precedent
> for all of these changes.
>
> There are no functional changes in this patch.
>
> Here are the specific issues addressed:
>
> * Remove all trailing whitespace
> * Use tab-indentation consistently (there was some space indentation)
> * Consistent placement of parenthesis for "if", "for", "while", and
> "switch" expressions (i.e. "if (a == b)" instead of "if( a == b )")
> * Space follows all commas
> * Space around binary operators (i.e. "a = b + c;" instead of "a=b+c;")
This one may be controversial. Ime, there are cases when spaces
should not be used based on some strict rule, but rather to logically
group expressions.
> * Opening brace of function definition on its own line
> * Put the "else" on the same line as the preceding and following braces
>
> This is a rather large patch, but the changes are trivial. If this patch
> goes over well, I would be happy to create a similar patch for the rest
> of the mtd code.
I'm not sure about this. Apart from the binary operator cases, your
changes are definitely a slight improvement. But the patch is also
peeing on every lantern pole in the county:
61 files changed, 1677 insertions(+), 1713 deletions(-)
How can I trust you that you didn't introduce a security problem on
line 6789 of your 9485 line patch, by intention or not. I'd have to
read it all, which is quite boring.
And if all goes well, pretty much every single patch maintained
outside of cvs would break after merging this. There must be a
collision _somewhere_, after all.
So I guess the short answer is "no".
My usual approach to whitespace cleanup, btw., is as a first step
before I change some code anyway. Even whitespace patches should get
tested and since I need some testing anyway and they help me read and
change the code, the cleanup is gaining me more than it costs.
Jörn
--
A victorious army first wins and then seeks battle.
-- Sun Tzu
next prev parent reply other threads:[~2005-09-25 15:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 0:05 [PATCH] jffs2 whitespace Peter Grayson
2005-09-25 15:06 ` Jörn Engel [this message]
2005-09-26 8:53 ` Artem B. Bityutskiy
2005-09-26 9:34 ` Jörn Engel
2005-09-26 9:46 ` Artem B. Bityutskiy
2005-09-26 11:01 ` Jörn Engel
2005-09-26 17:17 ` Peter Grayson
2005-09-26 17:21 ` Artem B. Bityutskiy
2005-09-26 17:28 ` Jörn Engel
2005-09-27 13:56 ` Artem B. Bityutskiy
2005-09-27 14:02 ` Jörn Engel
2005-09-27 20:58 ` Peter Grayson
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=20050925150635.GD28978@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@lists.infradead.org \
--cc=pgrayson@realmsys.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