Re: current_is_kswapd is a function

From: Jamie Lokier
Date: Sun Oct 12 2003 - 07:20:13 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/