Re: [v4l-dvb-maintainer] [PULL] http://linuxtv.org/hg/~mcisely/pvrusb2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Isely
Date: Tuesday, September 2, 2008 - 5:04 pm

On Tue, 2 Sep 2008, Stefan Richter wrote:


One of the points behind a good coding style is that it should encourage 
code that is robust against trivial mistakes.  Prefering

	if (a) {
		b;
	}

over

	if (a)
		b;

I consider to be an example of this kind of simple safety.  (And I have 
in the past seen people getting burned from the obvious error of 
sticking a debug printf in between.)  ACTUALLY, I'd much, much rather 
prefer

	if (a) b;

however checkpatch.pl gets angry about that as well (even though the 
kernel CodingStyle document would seem to actually allow this - it's 
still one statement and since "b" is outside the normal flow then it's 
"something to hide" and should be ok in any case).



Tell that to those who would use checkpatch.pl to gate incoming 
changesets.



The v4l-maintainer has repeatedly told me otherwise.  His policy is 
basically that it must be checkpatch-clean or it isn't accepted (or at 
least an argument ensues).  He's probably not the only one in the 
community doing this.  Maybe he's getting pushed from above.  I wouldn't 
know.  What I do know is what it does to any subjective reason here.

I agree with your point, and I have raised this exact point when 
checkpatch.pl first got inflicted on me.  The issues I had in fact were 
places where CodingStyle (AFAICT) says it's ok while checkpatch.pl 
complains.  You know what answer I got?  (It wasn't from the v4l-dvb 
maintainer, by the way.)  It was effectively this: "CodingStyle is not 
relevant.  checkpatch.pl is the final authority.  This is what everyone 
does now.  Go away and come back when you have a real point to make."

I happen to have no real problem with CodingStyle.  I think it is well 
thought out and has evolved well over time.  But checkpatch.pl behaves 
like a baseball bat, compared to the fine scalpel that is CodingStyle.  
The checkpatch script has no concept of subjective judgement as you 
point out here.  I have a very big problem with using an imperfect tool 
such as that in a "perfect" no exceptions role as gatekeeper for code 
submissions.  From where I'm sitting - behind such a gate - checkpatch 
has effectively subverted CodingStyle.



Amen.



I agree.  I really disliked adding those, and I would rather they not be 
present.  But I have been reminded time and time again that the code had 
to pass checkpatch.pl before it would be pulled.  That led to silliness 
such as this.  I will gladly remove such junk if the maintainer would 
apply a little more subjective reason to his use of checkpatch.pl.

   [...]


<RANT>

  <mercifully deleted>

</RANT>

  -Mike


-- 

Mike Isely
isely @ pobox (dot) com
PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [v4l-dvb-maintainer] [PULL] http://linuxtv.org/hg/~mci ..., Mike Isely, (Tue Sep 2, 5:04 pm)