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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Krufky
Date: Tuesday, September 2, 2008 - 6:29 am

Mike Isely wrote:

Mauro,

There is nothing wrong with adding a /* comment */ inside an if block,
even if that comment says, " /* this is the only way to pass
checkpatch.pl */ "

I fully agree with Mike, in that it is much safer to enclose all if
blocks within brackets.

I understand that kernel codingstyle forbids single line bracketing, but
codingstyle does not forbid adding comments anywhere in the c source.

Mike added a comment, to create a compromise between kernel codingstyle
and his own.  This code comes from Mike's svn repository, where he uses
#ifdefs and various other compat code within his own build environment
to stay compatible with the v4l-dvb hg tree and the upstream kernel alike.

Mike is using brackets to ensure that all builds work properly, and to
ensure that there is no breakage when creating patches for mercurial, or
when building directly from his svn repository.

There is nothing wrong with the comments that Mike has in his code --
you should not hold up his merge request for that reason.

Not only is this another example of checkpatch.pl thwarting development
-- this is sickness INSPIRED by checkpatch.pl that is not preventing a
merge -- what insanity.

Just merge his tree, please.

Regards,
Mike Krufky
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [v4l-dvb-maintainer] [PULL] http://linuxtv.org/hg/~mci ..., Michael Krufky, (Tue Sep 2, 6:29 am)