Commit 6601345f authored by Paul Mundt's avatar Paul Mundt Committed by Linus Torvalds

[PATCH] net/sunrpc/clnt.c compile fix

net/sunrpc/clnt.c does not compile if RPC_DEBUG is not enabled, due to
the fact that tk_pid is protected by RPC_DEBUG (which in turn depends on
CONFIG_SYSCTL).

The printk's that use it don't actually need to print it out at all,
the rpc_task tag isn't really interesting here.

Acked by Trond Myklebust.
parent 9d75d797
...@@ -961,19 +961,19 @@ call_verify(struct rpc_task *task) ...@@ -961,19 +961,19 @@ call_verify(struct rpc_task *task)
case RPC_SUCCESS: case RPC_SUCCESS:
return p; return p;
case RPC_PROG_UNAVAIL: case RPC_PROG_UNAVAIL:
printk(KERN_WARNING "RPC: %4d call_verify: program %u is unsupported by server %s\n", printk(KERN_WARNING "RPC: call_verify: program %u is unsupported by server %s\n",
task->tk_pid, (unsigned int)task->tk_client->cl_prog, (unsigned int)task->tk_client->cl_prog,
task->tk_client->cl_server); task->tk_client->cl_server);
goto out_eio; goto out_eio;
case RPC_PROG_MISMATCH: case RPC_PROG_MISMATCH:
printk(KERN_WARNING "RPC: %4d call_verify: program %u, version %u unsupported by server %s\n", printk(KERN_WARNING "RPC: 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_prog,
(unsigned int)task->tk_client->cl_vers, (unsigned int)task->tk_client->cl_vers,
task->tk_client->cl_server); task->tk_client->cl_server);
goto out_eio; goto out_eio;
case RPC_PROC_UNAVAIL: case RPC_PROC_UNAVAIL:
printk(KERN_WARNING "RPC: %4d call_verify: proc %p unsupported by program %u, version %u on server %s\n", printk(KERN_WARNING "RPC: call_verify: proc %p unsupported by program %u, version %u on server %s\n",
task->tk_pid, task->tk_msg.rpc_proc, task->tk_msg.rpc_proc,
task->tk_client->cl_prog, task->tk_client->cl_prog,
task->tk_client->cl_vers, task->tk_client->cl_vers,
task->tk_client->cl_server); task->tk_client->cl_server);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment