Re: [patch] 2.5.9 remove warnings

From: Daniel Phillips (phillips@bonn-fries.net)
Date: Tue Apr 23 2002 - 04:37:03 EST


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/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:09 EST