Re: [patch] 2.5.9 remove warnings

Daniel Phillips (phillips@bonn-fries.net)
Tue, 23 Apr 2002 11:37:03 +0200


On Tuesday 23 April 2002 05:39, Keith Owens wrote:
> exit.c:40: warning: passing arg 1 of `__builtin_expect' makes integer from pointer without a cast

> - if (unlikely(proc_dentry)) {
> + if (unlikely(proc_dentry != NULL)) {

Have you checked to see if this produces the same code? To be on the safe
side:

+ if (unlikely((ulong) proc_dentry)) {

-- 
Daniel
-
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/