Re: CFD: linux-wanking@vger.kernel.org (was [PATCH] Standard indentation of arguments)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Al Viro
Date: Wednesday, May 21, 2008 - 5:14 pm

On Thu, May 22, 2008 at 01:46:28AM +0200, Jesper Juhl wrote:

0.  Use your common sense.  No hard rules will ever replace that.


If you are familiar with C, reading the kernel source (e.g. starting
at system call and going down from there) can be very useful; you will
need such skills anyway and you might actually find real bugs.

Asking the questions along the lines "code seems to assume that <this> never
happens; why can't it happen and what happens if it does?" is generally
welcome, assuming that question is more or less coherent.  "I do not
understand this code at all" will be less useful and "<this> is <expletives>
BROKEN!!!  I've found a major hole!!!" would better be right - which is not
impossible.  Use common sense; if you turn out to be wrong (which is also
quite possible), the size of crow you'll have to eat will be directly
proportional to the vehemence of the original posting.  That applies to all
of us - pretty much everyone had been there and probably will be there again
and again.  On the other hand, do not be surprised if the answer will be
"It's because...  Umm...  Oh, !@#!@#, looks like you've spotted a nasty hole".
It also happens and assuming that code is correct just because it is in the
tree is a bad mistake.  Newbies can and do find serious bugs and doing that
can earn one a lot of good will.


Note that fixing up coding style in the code you are modifying is fine,
provided that coding style part does not obscure the real changes you
are making and the scale of coding style changes is not wildly out of
proportion.  Again, use the common sense - changing two lines in a function
is not a reason to reformat every file in directory while you are at it.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Standard indentation of arguments, Jianjun Kong, (Tue May 20, 10:58 pm)
Re: [PATCH] Standard indentation of arguments, Jiri Slaby, (Wed May 21, 12:19 am)
Re: CFD: linux-wanking@vger.kernel.org, David Miller, (Wed May 21, 2:19 am)
Re: CFD: linux-wanking@vger.kernel.org (was [PATCH] Standa ..., Christoph Hellwig, (Wed May 21, 3:32 am)
Re: [PATCH] Standard indentation of arguments, David Newall, (Wed May 21, 4:35 am)
Re: CFD: linux-wanking@vger.kernel.org, David Miller, (Wed May 21, 12:49 pm)
Re: CFD: linux-wanking@vger.kernel.org, David Miller, (Wed May 21, 1:10 pm)
Re: CFD: linux-wanking@vger.kernel.org, Willy Tarreau, (Wed May 21, 2:25 pm)
Re: CFD: linux-wanking@vger.kernel.org, Stefan Richter, (Wed May 21, 2:44 pm)
Re: CFD: linux-wanking@vger.kernel.org, Willy Tarreau, (Wed May 21, 2:56 pm)
Re: CFD: linux-wanking@vger.kernel.org, Al Viro, (Wed May 21, 3:03 pm)
Re: CFD: linux-wanking@vger.kernel.org (was [PATCH] Standa ..., Al Viro, (Wed May 21, 5:14 pm)