Re: Tuxradar patching article and [PATCH]scripts/cvt_kernel_style.pl

From: Greg KH
Date: Tue Mar 09 2010 - 18:42:47 EST


On Tue, Mar 09, 2010 at 03:32:06PM -0800, Joe Perches wrote:
> There was an article published recently:
> http://www.tuxradar.com/content/newbies-guide-hacking-linux-kernel
> that seems to have prompted several new contributors (welcome)
> to create style reformatting patches.
>
> The article recommends running checkpatch and fixing the various
> non-conforming style elements the output produces.
>
> A better solution might be to enhance checkpatch to rewrite the
> patch or a file with -f, but that's more than I'd like to do.

I _really_ dislike automatic source conversions by a tool and do not
recommend doing that at all.

It's better that you look at the code yourself, and make the change that
looks correct, which is not always the same thing that an automated tool
would do.

Becides, we have the Lindent script, which does almost exactly what you
are trying to do here, why reinvent the wheel?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/