* Re: RFC: Trailing blanks in source files
[not found] <Pine.LNX.4.58.0401271544120.27260@joel.ist.utl.pt.suse.lists.linux.kernel>
@ 2004-01-27 18:34 ` Andi Kleen
2004-01-27 18:51 ` Joseph D. Wagner
0 siblings, 1 reply; 15+ messages in thread
From: Andi Kleen @ 2004-01-27 18:34 UTC (permalink / raw)
To: Rui Saraiva; +Cc: linux-kernel
Rui Saraiva <rmps@joel.ist.utl.pt> writes:
> It seems that many files [1] in the Linux source have lines with
> trailing blank (space and tab) characters and some even have formfeed
> characters. Obviously these blank characters aren't necessary.
>
> I wonder if it is a waste of time to send patches that clean the
> source? Those patches will only remove those trailing blank characters and
> will be splitted by maintainer.
A lot of people will hate you for that because you'll break their external
patches without any good reason.
Don't do it.
I'm sure there are lots of other areas where good clean up can be done
without causing problems.
-Andi
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: RFC: Trailing blanks in source files
2004-01-27 18:34 ` RFC: Trailing blanks in source files Andi Kleen
@ 2004-01-27 18:51 ` Joseph D. Wagner
2004-01-27 19:13 ` David Weinehall
2004-01-27 19:14 ` linux
0 siblings, 2 replies; 15+ messages in thread
From: Joseph D. Wagner @ 2004-01-27 18:51 UTC (permalink / raw)
To: Andi Kleen, Rui Saraiva; +Cc: linux-kernel
> It seems that many files [1] in the Linux source have lines with
> trailing blank (space and tab) characters and some even have formfeed
> characters. Obviously these blank characters aren't necessary.
Actually, they are necessary.
http://www.gnu.org/prep/standards_23.html
http://www.gnu.org/prep/standards_24.html
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 18:51 ` Joseph D. Wagner
@ 2004-01-27 19:13 ` David Weinehall
2004-01-27 19:18 ` Randy.Dunlap
2004-01-27 19:31 ` Paulo Marques
2004-01-27 19:14 ` linux
1 sibling, 2 replies; 15+ messages in thread
From: David Weinehall @ 2004-01-27 19:13 UTC (permalink / raw)
To: Joseph D. Wagner; +Cc: Andi Kleen, Rui Saraiva, linux-kernel
On Tue, Jan 27, 2004 at 12:51:34PM -0600, Joseph D. Wagner wrote:
> > It seems that many files [1] in the Linux source have lines with
> > trailing blank (space and tab) characters and some even have formfeed
> > characters. Obviously these blank characters aren't necessary.
>
> Actually, they are necessary.
>
> http://www.gnu.org/prep/standards_23.html
> http://www.gnu.org/prep/standards_24.html
Let me quote CodingStyle:
"First off, I'd suggest printing out a copy of the GNU coding standards,
and NOT read it. Burn them, it's a great symbolic gesture."
That's how much relevance GNU's coding standards have to the kernel.
Regards: David Weinehall
--
/) David Weinehall <tao@acc.umu.se> /) Northern lights wander (\
// Maintainer of the v2.0 kernel // Dance across the winter sky //
\) http://www.acc.umu.se/~tao/ (/ Full colour fire (/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 19:13 ` David Weinehall
@ 2004-01-27 19:18 ` Randy.Dunlap
2004-01-28 0:02 ` Andrew Morton
2004-01-27 19:31 ` Paulo Marques
1 sibling, 1 reply; 15+ messages in thread
From: Randy.Dunlap @ 2004-01-27 19:18 UTC (permalink / raw)
To: David Weinehall; +Cc: theman, ak, rmps, linux-kernel
On Tue, 27 Jan 2004 20:13:58 +0100 David Weinehall <tao@debian.org> wrote:
| On Tue, Jan 27, 2004 at 12:51:34PM -0600, Joseph D. Wagner wrote:
| > > It seems that many files [1] in the Linux source have lines with
| > > trailing blank (space and tab) characters and some even have formfeed
| > > characters. Obviously these blank characters aren't necessary.
| >
| > Actually, they are necessary.
| >
| > http://www.gnu.org/prep/standards_23.html
| > http://www.gnu.org/prep/standards_24.html
|
| Let me quote CodingStyle:
|
| "First off, I'd suggest printing out a copy of the GNU coding standards,
| and NOT read it. Burn them, it's a great symbolic gesture."
|
| That's how much relevance GNU's coding standards have to the kernel.
Thank you, I had forgotten that one and I was wondering what the
heck those web pages had to do with anything (kernel).
So please don't bother with just whitespace changes unless you
are going to cleanup a <driver | fs | module | etc> completely.
--
~Randy
kernel-janitors project: http://janitor.kernelnewbies.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 19:18 ` Randy.Dunlap
@ 2004-01-28 0:02 ` Andrew Morton
2004-01-28 3:49 ` jw schultz
0 siblings, 1 reply; 15+ messages in thread
From: Andrew Morton @ 2004-01-28 0:02 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: tao, theman, ak, rmps, linux-kernel
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
>
> So please don't bother with just whitespace changes unless you
> are going to cleanup a <driver | fs | module | etc> completely.
And if you're going to do that, do the whitespace cleanup _first_, so the
substantive changes to the driver/fs/module/etc can be sanely understood
and reverted if necessary.
I frequently sneakily remove all newly-added trailing whitespace from the
patches people send me. In 15 years it'll all be gone.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-28 0:02 ` Andrew Morton
@ 2004-01-28 3:49 ` jw schultz
2004-01-28 3:55 ` Randy.Dunlap
0 siblings, 1 reply; 15+ messages in thread
From: jw schultz @ 2004-01-28 3:49 UTC (permalink / raw)
To: linux-kernel
On Tue, Jan 27, 2004 at 04:02:14PM -0800, Andrew Morton wrote:
> "Randy.Dunlap" <rddunlap@osdl.org> wrote:
> >
> > So please don't bother with just whitespace changes unless you
> > are going to cleanup a <driver | fs | module | etc> completely.
>
> And if you're going to do that, do the whitespace cleanup _first_, so the
> substantive changes to the driver/fs/module/etc can be sanely understood
> and reverted if necessary.
>
> I frequently sneakily remove all newly-added trailing whitespace from the
> patches people send me. In 15 years it'll all be gone.
This would maybe warrant a bk option to remove trailing
whitespace from modified lines. Preferably with an
notification that it is happening so if for some reason you
do want trailing whitespace you could abort or override.
A patch filter that removed trailing whitespace from + lines
could also be used.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@pegasys.ws
Remember Cernan and Schmitt
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-28 3:49 ` jw schultz
@ 2004-01-28 3:55 ` Randy.Dunlap
2004-01-28 4:53 ` Pragnesh Sampat
0 siblings, 1 reply; 15+ messages in thread
From: Randy.Dunlap @ 2004-01-28 3:55 UTC (permalink / raw)
To: jw schultz; +Cc: linux-kernel
On Tue, 27 Jan 2004 19:49:39 -0800 jw schultz <jw@pegasys.ws> wrote:
| On Tue, Jan 27, 2004 at 04:02:14PM -0800, Andrew Morton wrote:
| > "Randy.Dunlap" <rddunlap@osdl.org> wrote:
| > >
| > > So please don't bother with just whitespace changes unless you
| > > are going to cleanup a <driver | fs | module | etc> completely.
| >
| > And if you're going to do that, do the whitespace cleanup _first_, so the
| > substantive changes to the driver/fs/module/etc can be sanely understood
| > and reverted if necessary.
| >
| > I frequently sneakily remove all newly-added trailing whitespace from the
| > patches people send me. In 15 years it'll all be gone.
|
| This would maybe warrant a bk option to remove trailing
| whitespace from modified lines. Preferably with an
| notification that it is happening so if for some reason you
| do want trailing whitespace you could abort or override.
|
| A patch filter that removed trailing whitespace from + lines
| could also be used.
AFAIK Andrew already uses a script to check for trailing spaces,
and I do also. Yes, it could be modified to be a conversion filter,
but it doesn't happen frequently, and when it does, I want to let
the poster know about it, so I like to have the evidence handy. :)
--
~Randy
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-28 3:55 ` Randy.Dunlap
@ 2004-01-28 4:53 ` Pragnesh Sampat
0 siblings, 0 replies; 15+ messages in thread
From: Pragnesh Sampat @ 2004-01-28 4:53 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: jw schultz, linux-kernel, rv
> | > I frequently sneakily remove all newly-added trailing whitespace from the
> | > patches people send me. In 15 years it'll all be gone.
> |
> | This would maybe warrant a bk option to remove trailing
> | whitespace from modified lines. Preferably with an
> | notification that it is happening so if for some reason you
> | do want trailing whitespace you could abort or override.
> |
> | A patch filter that removed trailing whitespace from + lines
> | could also be used.
>
> AFAIK Andrew already uses a script to check for trailing spaces,
> and I do also. Yes, it could be modified to be a conversion filter,
> but it doesn't happen frequently, and when it does, I want to let
> the poster know about it, so I like to have the evidence handy. :)
Recent versions of emacs, for those that use it, have whitespace.el (for
cleaning up as you go along). It can cleanup different kinds of
whitespace based on settings. Check C-h f whitespace-describe for more
details. Got used to that heavily at one point, these days I am kind of
neutral, sometimes I do it, sometimes I don't bother.
-Pragnesh
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 19:13 ` David Weinehall
2004-01-27 19:18 ` Randy.Dunlap
@ 2004-01-27 19:31 ` Paulo Marques
2004-01-28 22:15 ` Paul Jackson
1 sibling, 1 reply; 15+ messages in thread
From: Paulo Marques @ 2004-01-27 19:31 UTC (permalink / raw)
To: David Weinehall; +Cc: Joseph D. Wagner, Andi Kleen, Rui Saraiva, linux-kernel
David Weinehall wrote:
> On Tue, Jan 27, 2004 at 12:51:34PM -0600, Joseph D. Wagner wrote:
>
>>>It seems that many files [1] in the Linux source have lines with
>>>trailing blank (space and tab) characters and some even have formfeed
>>>characters. Obviously these blank characters aren't necessary.
>>>
>>Actually, they are necessary.
>>
>>http://www.gnu.org/prep/standards_23.html
>>http://www.gnu.org/prep/standards_24.html
>>
>
> Let me quote CodingStyle:
>
> "First off, I'd suggest printing out a copy of the GNU coding standards,
> and NOT read it. Burn them, it's a great symbolic gesture."
>
> That's how much relevance GNU's coding standards have to the kernel.
>
And even if we did use GNU's coding standards (knock on wood :), where is the
part that requires *trailing* spaces?
Only in languages like "whitespace" ( http://compsoc.dur.ac.uk/whitespace/ ) the
trailing spaces have any meaning :)
--
Paulo Marques - www.grupopie.com
"In a world without walls and fences who needs windows and gates?"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 19:31 ` Paulo Marques
@ 2004-01-28 22:15 ` Paul Jackson
2004-01-28 22:22 ` David Weinehall
0 siblings, 1 reply; 15+ messages in thread
From: Paul Jackson @ 2004-01-28 22:15 UTC (permalink / raw)
To: Paulo Marques; +Cc: tao, theman, ak, rmps, linux-kernel
Joseph D. Wagner
> Actually, they are necessary.
Paulo Marques
> where is the part that requires *trailing* spaces?
No where. Joseph was ambiguous - I'd guess he meant:
Actually, formfeeds are necessary.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: RFC: Trailing blanks in source files
2004-01-28 22:15 ` Paul Jackson
@ 2004-01-28 22:22 ` David Weinehall
0 siblings, 0 replies; 15+ messages in thread
From: David Weinehall @ 2004-01-28 22:22 UTC (permalink / raw)
To: Paul Jackson; +Cc: Paulo Marques, theman, ak, rmps, linux-kernel
On Wed, Jan 28, 2004 at 02:15:40PM -0800, Paul Jackson wrote:
> Joseph D. Wagner
> > Actually, they are necessary.
>
> Paulo Marques
> > where is the part that requires *trailing* spaces?
>
> No where. Joseph was ambiguous - I'd guess he meant:
> Actually, formfeeds are necessary.
Which is of course not the case either...
Regards: David Weinehall
--
/) David Weinehall <tao@acc.umu.se> /) Northern lights wander (\
// Maintainer of the v2.0 kernel // Dance across the winter sky //
\) http://www.acc.umu.se/~tao/ (/ Full colour fire (/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 18:51 ` Joseph D. Wagner
2004-01-27 19:13 ` David Weinehall
@ 2004-01-27 19:14 ` linux
1 sibling, 0 replies; 15+ messages in thread
From: linux @ 2004-01-27 19:14 UTC (permalink / raw)
To: Joseph D. Wagner; +Cc: Andi Kleen, Rui Saraiva, linux-kernel
On Tue, Jan 27, 2004 at 12:51:34PM -0600, Joseph D. Wagner wrote:
> > It seems that many files [1] in the Linux source have lines with
> > trailing blank (space and tab) characters and some even have formfeed
> > characters. Obviously these blank characters aren't necessary.
>
> Actually, they are necessary.
>
> http://www.gnu.org/prep/standards_23.html
> http://www.gnu.org/prep/standards_24.html
>From Documentation/CodingStyle:
| First off, I'd suggest printing out a copy of the GNU coding standards,
| and NOT read it. Burn them, it's a great symbolic gesture.
^ permalink raw reply [flat|nested] 15+ messages in thread
* RFC: Trailing blanks in source files
@ 2004-01-27 15:44 Rui Saraiva
2004-01-27 16:15 ` YOSHIFUJI Hideaki / 吉藤英明
0 siblings, 1 reply; 15+ messages in thread
From: Rui Saraiva @ 2004-01-27 15:44 UTC (permalink / raw)
To: linux-kernel
Hello,
It seems that many files [1] in the Linux source have lines with
trailing blank (space and tab) characters and some even have formfeed
characters. Obviously these blank characters aren't necessary.
I wonder if it is a waste of time to send patches that clean the
source? Those patches will only remove those trailing blank characters and
will be splitted by maintainer.
Regards,
Rui Saraiva
[1]
> grep -lR "[[:blank:]]$" /usr/src/linux/ | wc -l
8163
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 15:44 Rui Saraiva
@ 2004-01-27 16:15 ` YOSHIFUJI Hideaki / 吉藤英明
2004-01-27 16:30 ` Bas Mevissen
0 siblings, 1 reply; 15+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2004-01-27 16:15 UTC (permalink / raw)
To: rmps; +Cc: linux-kernel, yoshfuji
In article <Pine.LNX.4.58.0401271544120.27260@joel.ist.utl.pt> (at Tue, 27 Jan 2004 15:44:56 +0000 (WET)), Rui Saraiva <rmps@joel.ist.utl.pt> says:
> It seems that many files [1] in the Linux source have lines with
> trailing blank (space and tab) characters and some even have formfeed
> characters. Obviously these blank characters aren't necessary.
I do not like to change this if it is done blindly.
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: RFC: Trailing blanks in source files
2004-01-27 16:15 ` YOSHIFUJI Hideaki / 吉藤英明
@ 2004-01-27 16:30 ` Bas Mevissen
0 siblings, 0 replies; 15+ messages in thread
From: Bas Mevissen @ 2004-01-27 16:30 UTC (permalink / raw)
Cc: rmps, linux-kernel, yoshfuji
YOSHIFUJI Hideaki / ???? wrote:
> In article <Pine.LNX.4.58.0401271544120.27260@joel.ist.utl.pt> (at Tue, 27 Jan 2004 15:44:56 +0000 (WET)), Rui Saraiva <rmps@joel.ist.utl.pt> says:
>
>
>> It seems that many files [1] in the Linux source have lines with
>>trailing blank (space and tab) characters and some even have formfeed
>>characters. Obviously these blank characters aren't necessary.
>
>
> I do not like to change this if it is done blindly.
>
Agree. But if you compile a allconfigyes kernel before and after and
they appear to be binary equal, we know we are pretty safe :-)
Regards,
Bas.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2004-01-28 22:22 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.58.0401271544120.27260@joel.ist.utl.pt.suse.lists.linux.kernel>
2004-01-27 18:34 ` RFC: Trailing blanks in source files Andi Kleen
2004-01-27 18:51 ` Joseph D. Wagner
2004-01-27 19:13 ` David Weinehall
2004-01-27 19:18 ` Randy.Dunlap
2004-01-28 0:02 ` Andrew Morton
2004-01-28 3:49 ` jw schultz
2004-01-28 3:55 ` Randy.Dunlap
2004-01-28 4:53 ` Pragnesh Sampat
2004-01-27 19:31 ` Paulo Marques
2004-01-28 22:15 ` Paul Jackson
2004-01-28 22:22 ` David Weinehall
2004-01-27 19:14 ` linux
2004-01-27 15:44 Rui Saraiva
2004-01-27 16:15 ` YOSHIFUJI Hideaki / 吉藤英明
2004-01-27 16:30 ` Bas Mevissen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox