lkml.org 
[lkml]   [2003]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.035 / U:1.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site