[patch] 2.5.9 remove warnings

From: Keith Owens (kaos@ocs.com.au)
Date: Mon Apr 22 2002 - 22:39:31 EST


exit.c:40: warning: passing arg 1 of `__builtin_expect' makes integer from pointer without a cast

Index: 9.2/kernel/exit.c
--- 9.2/kernel/exit.c Tue, 23 Apr 2002 11:21:19 +1000 kaos (linux-2.5/w/d/25_exit.c 1.11.1.4 644)
+++ 9.2(w)/kernel/exit.c Tue, 23 Apr 2002 13:37:06 +1000 kaos (linux-2.5/w/d/25_exit.c 1.11.1.4 644)
@@ -37,7 +37,7 @@ static inline void __unhash_process(stru
         list_del(&p->thread_group);
         p->pid = 0;
         proc_dentry = p->proc_dentry;
- if (unlikely(proc_dentry)) {
+ if (unlikely(proc_dentry != NULL)) {
                 spin_lock(&dcache_lock);
                 if (!list_empty(&proc_dentry->d_hash)) {
                         dget_locked(proc_dentry);
@@ -47,7 +47,7 @@ static inline void __unhash_process(stru
                 spin_unlock(&dcache_lock);
         }
         write_unlock_irq(&tasklist_lock);
- if (unlikely(proc_dentry)) {
+ if (unlikely(proc_dentry != NULL)) {
                 shrink_dcache_parent(proc_dentry);
                 dput(proc_dentry);
         }

-
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 23 2002 - 22:00:35 EST