From: "Måns Rullgård" <mans@mansr.com>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: piotrgregor@rsyncme.org,
Linus Torvalds <torvalds@linux-foundation.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Moratorium on coding style patches (was Re: [PATCH] include/linux/kernel.h: fixed coding style issues)
Date: Wed, 14 Dec 2016 18:13:19 +0000 [thread overview]
Message-ID: <yw1xtwa6tm4g.fsf@unicorn.mansr.com> (raw)
In-Reply-To: <CACVxJT9Whu8Uq0Z+1Na3v_2_bfBGCf7+EZQ3yWxg=O-fqbO=VA@mail.gmail.com> (Alexey Dobriyan's message of "Wed, 14 Dec 2016 18:32:35 +0300")
Alexey Dobriyan <adobriyan@gmail.com> writes:
> OK, someone needs to say it.
>
> These type of patches are advertised by some people as a good way
> to enter Linux kernel development. You know, to learn how the process
> works, how to setup email client pipeline, to get initial feedback.
> And it is true. What those people aren't saying is that the above is
> about ~0.01% of what is kernel or any other project development is about.
> It is the easy part.
>
> But the patches also create problems for those who are already in.
> The very immediate is that "git-blame" stops working. It simply points
> to the irrelevant commit and developer is forced to either search
> manually through the history or search the web for "git-blame" options.
> (maybe there is such an option but that's not the point).
>
> And "git-blame" usually happens in important cases: when developer
> searches for a possible bugfix or wondering who wrote that crap.
>
> Au contraire, coding style patch is something unimportant.
> Whitespace here, whitespace there, who cares. On the grand scale,
> coding style compliance is important but in my experience Linux
> kernel CS compliance is top notch for the project of Linux's size.
>
> So the tradeoff is not in the patch favour and all you need to follow
> coding style is basically "indent -kr -i8 -l80" for new code.
> It is then becomes non problem because editors defaults are doing
> the job.
>
> And they create rejects against other non-coding style patches,
> again slowing down people who need to fix real problems.
I agree with all of that, yet I still sometimes create pure style
patches. This tends to happen when I can't look at the code I'm trying
to debug without wanting to claw my eyes out. In such cases, an initial
cleanup patch often makes the actual fix much easier to comprehend.
There's not a lot such code in the kernel, thankfully, but it does
exist.
> Said that, I call for a tree wide moratorium on pure coding style changes.
In light of the above, I'd relax this slightly and say don't do style
patches unless as a prelude to some real work.
--
Måns Rullgård
next prev parent reply other threads:[~2016-12-14 18:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-14 15:32 Alexey Dobriyan
2016-12-14 18:13 ` Måns Rullgård [this message]
2016-12-14 23:49 ` Joe Perches
2016-12-15 11:54 ` Måns Rullgård
2016-12-15 17:03 ` Joe Perches
2016-12-15 17:12 ` Greg KH
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=yw1xtwa6tm4g.fsf@unicorn.mansr.com \
--to=mans@mansr.com \
--cc=adobriyan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=piotrgregor@rsyncme.org \
--cc=torvalds@linux-foundation.org \
/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
Powered by JetHome