From: Paul Mundt <lethal@linux-sh.org>
To: torvalds@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] net/sunrpc/clnt.c compile fix
Date: Thu, 9 Oct 2003 12:13:50 -0400 [thread overview]
Message-ID: <20031009161350.GA9170@linux-sh.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1803 bytes --]
Not sure if anyone has submitted this already, but as the subject implies,
net/sunrpc/clnt.c does not compile in either stock test7 or in current BK:
CC net/sunrpc/clnt.o
net/sunrpc/clnt.c: In function `call_verify':
net/sunrpc/clnt.c:965: structure has no member named `tk_pid'
net/sunrpc/clnt.c:970: structure has no member named `tk_pid'
net/sunrpc/clnt.c:976: structure has no member named `tk_pid'
make[1]: *** [net/sunrpc/clnt.o] Error 1
make: *** [net/sunrpc/clnt.o] Error 2
This is due to the fact that tk_pid is protected by RPC_DEBUG. Wrapping
through dprintk() fixes this.
--- linux-sh-2.6.0-test7.orig/net/sunrpc/clnt.c Thu Oct 9 09:42:45 2003
+++ linux-sh-2.6.0-test7/net/sunrpc/clnt.c Thu Oct 9 12:04:56 2003
@@ -961,18 +961,18 @@
case RPC_SUCCESS:
return p;
case RPC_PROG_UNAVAIL:
- printk(KERN_WARNING "RPC: %4d call_verify: program %u is unsupported by server %s\n",
+ dprintk("RPC: %4d call_verify: program %u is unsupported by server %s\n",
task->tk_pid, (unsigned int)task->tk_client->cl_prog,
task->tk_client->cl_server);
goto out_eio;
case RPC_PROG_MISMATCH:
- printk(KERN_WARNING "RPC: %4d call_verify: program %u, version %u unsupported by server %s\n",
+ dprintk("RPC: %4d call_verify: program %u, version %u unsupported by server %s\n",
task->tk_pid, (unsigned int)task->tk_client->cl_prog,
(unsigned int)task->tk_client->cl_vers,
task->tk_client->cl_server);
goto out_eio;
case RPC_PROC_UNAVAIL:
- printk(KERN_WARNING "RPC: %4d call_verify: proc %p unsupported by program %u, version %u on server %s\n",
+ dprintk("RPC: %4d call_verify: proc %p unsupported by program %u, version %u on server %s\n",
task->tk_pid, task->tk_msg.rpc_proc,
task->tk_client->cl_prog,
task->tk_client->cl_vers,
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2003-10-09 16:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-09 16:13 Paul Mundt [this message]
2003-10-09 16:33 ` [PATCH] net/sunrpc/clnt.c compile fix Geert Uytterhoeven
2003-10-09 16:37 ` Trond Myklebust
2003-10-09 16:40 ` Paul Mundt
2003-10-09 16:50 ` Trond Myklebust
2003-10-09 16:54 ` Paul Mundt
2003-10-09 16:57 ` Trond Myklebust
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=20031009161350.GA9170@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.