Messages in this thread | | | Date | Sun, 12 Oct 2003 13:18:44 +0100 | From | Jamie Lokier <> | Subject | Re: current_is_kswapd is a function |
| |
Andrew Morton wrote: > It would probably be worthwhile teaching the compiler to generate a warning > in this case; I doubt if anyone is likely to want to find out at runtime > whether the linker happened to place a particular function at address zero. > I shall suggest that.
I agree it would be a very useful warning.
Testing the address is useful occasionally, to ask whether the target of a weak linkage reference was linked in, so a syntax is needed to suppress the warning, such as "&function != 0".
-- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |