From: David Woodhouse <[EMAIL PROTECTED]> Date: Fri, 18 May 2007 09:48:32 +0800
> On Thu, 2007-05-17 at 15:27 -0700, Andrew Morton wrote: > > If only we could find some way in which all callers of a function as > > well as its definition can see the same declaration? > > Well, building with --combine helps. :) > > Admittedly it doesn't necessarily catch _all_ callers -- only those > which we actually compile together. That does cover _most_ of the times > we do crap like this without a prototype in a header file though, I > suspect. > > As Geert points out, sparse can warn about non-static functions which > aren't prototyped; if we start getting anal about that, it might help. I think it might be useful to be able to optionally to a --combine build on the whole tree with like allyeconfig or something crazy like that. Just as a once-in-a-while thing to catch declaration mismatch and other similar issues. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html