Re: [UPDATED PATCH] fix memory corruption from misinterpretedbad_inode_ops return values
From: Linus Torvalds
Date: Thu Jan 04 2007 - 14:31:04 EST
On Thu, 4 Jan 2007, Al Viro wrote:
>
> How about "makes call graph analysis easier"? ;-) In principle, I have
> no problem with force-casting, but it'd better be cast to the right
> type...
Do we really care in the kernel? We simply never use function pointer
casts like this for anything non-trivial, so if the graph analysis just
doesn't work for those cases, do we really even care?
The only case I can _remember_ us doing this for is literally the
error-returning functions, where the call graph finding them really
doesn't matter, I think.
So I don't _object_ to that reason, I just wonder whether it's really a
big issue..
Linus
-
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/