From: Keith Owens <kaos@ocs.com.au>
To: linux-kernel@vger.kernel.org
Cc: torvalds@transmeta.org
Subject: [patch] 2.5.9 remove warnings
Date: Tue, 23 Apr 2002 13:39:31 +1000 [thread overview]
Message-ID: <10704.1019533171@kao2.melbourne.sgi.com> (raw)
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);
}
next reply other threads:[~2002-04-23 17:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-23 3:39 Keith Owens [this message]
2002-04-23 9:37 ` [patch] 2.5.9 remove warnings Daniel Phillips
2002-04-23 18:32 ` Andrew Morton
2002-04-23 21:08 ` Kasper Dupont
2002-04-24 18:56 ` Ingo Oeser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10704.1019533171@kao2.melbourne.sgi.com \
--to=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox