Re: [PATCH -mm] sys_semctl gcc 4.1 warning fix

From: Al Viro
Date: Wed May 10 2006 - 12:20:38 EST


On Wed, May 10, 2006 at 08:38:41AM -0700, Daniel Walker wrote:
> On Wed, 2006-05-10 at 16:39 +0100, Alan Cox wrote:
> > On Mer, 2006-05-10 at 08:06 -0700, Daniel Walker wrote:
> > > > Because while the warning is present people will check it now and again.
> > >
> > > But it's pointless to review it, in this case and for this warning .
> >
> > Then why did you review it ?
>
> So I wouldn't have to see that warning again ..
>
> > It reminds people that it does need checking, and ensures now and then
> > people do check that there isn't actually a bug there.
>
> I don't see a reason why it needs checking .. People are just going to
> spin their wheel reviewing code that's been reviewed .. Maybe someone
> like me will write a patch to fix this warning , and we'll see this
> process happening all over again ..

Don't. Fix. Correct. Code.

Ever. Because sooner or later you will paper over real bug. It's far better
to reject patches that just make $TOOL to STFU than risk blind "fix" hiding
a real bug.

Unless you show a real codepath that leads to use without initialization
(and do that in commit message, so it could be verified as real issue),
these patches are worthless in the best case and dangerous in the worst
one.
-
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/