[lkml]   [2003]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Question about style when converting from K&R to ANSI C.
On Sun, 2003-06-01 at 17:01, Paul Mackerras wrote:
> Steven Cole writes:
> > Here is a snippet of a patch from arch/ppc/xmon/ppc-opc.c:
> Given that that file is a direct lift from binutils, I would rather
> update it with the latest version from binutils than waste time on
> reformatting, if it really bothers you.
> My opinion is that changing code that works and that doesn't need
> attention is a waste of time. If you're working on some code (or even
> if you are just trying to understand it and you want to make it clearer),
> then fine, reformat/re-indent/fix argument declarations/whatever, but
> if you're not, find something more productive to do.
> Paul.
The only purpose was to convert from K&R style:

int foo(bar, baz)
long bar;
long baz;

to ANSI C style:

int foo(long bar, long baz)

The purpose of the above is that Linus's new sparse checker purposefully
ignores K&R style, and he has indicated a willingness to accept patches
for the conversion. In fact, he began the conversion himself.

If you'd rather me not touch arch/ppc/xmon/ppc-opc.c and xmon.c, then I
won't. I was about ready to send those patches to you. Please let me
know what you'd prefer. The default will be no action. Thanks.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:35    [W:0.272 / U:6.724 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site