linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remove unused variables in net/sunrpc/auth.c
@ 2005-01-10 21:50 Jesper Juhl
  2005-01-10 22:16 ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Juhl @ 2005-01-10 21:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-net, netdev, Olaf Kirch


We have a few unused variables in net/sunrpc/auth.c:320:

net/sunrpc/auth.c:320: warning: unused variable `auth'
net/sunrpc/auth.c:333: warning: unused variable `auth'
net/sunrpc/auth.c:345: warning: unused variable `auth'
net/sunrpc/auth.c:385: warning: unused variable `auth'

As far as I can see, the patch that caused them to become unused is this 
one (which btw is ~36 months old) :
http://linux.bkbits.net:8080/linux-2.6/diffs/net/sunrpc/auth.c@1.4?nav=index.html|src/|src/net|src/net/sunrpc|hist/net/sunrpc/auth.c

Here is a patch to get rid of them (compile tested only).


Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>

diff -up linux-2.6.10-bk13-orig/net/sunrpc/auth.c linux-2.6.10-bk13/net/sunrpc/auth.c
--- linux-2.6.10-bk13-orig/net/sunrpc/auth.c	2005-01-10 22:09:22.000000000 +0100
+++ linux-2.6.10-bk13/net/sunrpc/auth.c	2005-01-10 22:37:55.000000000 +0100
@@ -317,7 +317,6 @@ put_rpccred(struct rpc_cred *cred)
 void
 rpcauth_unbindcred(struct rpc_task *task)
 {
-	struct rpc_auth	*auth = task->tk_auth;
 	struct rpc_cred	*cred = task->tk_msg.rpc_cred;
 
 	dprintk("RPC: %4d releasing %s cred %p\n",
@@ -330,7 +329,6 @@ rpcauth_unbindcred(struct rpc_task *task
 u32 *
 rpcauth_marshcred(struct rpc_task *task, u32 *p)
 {
-	struct rpc_auth	*auth = task->tk_auth;
 	struct rpc_cred	*cred = task->tk_msg.rpc_cred;
 
 	dprintk("RPC: %4d marshaling %s cred %p\n",
@@ -342,7 +340,6 @@ rpcauth_marshcred(struct rpc_task *task,
 u32 *
 rpcauth_checkverf(struct rpc_task *task, u32 *p)
 {
-	struct rpc_auth	*auth = task->tk_auth;
 	struct rpc_cred	*cred = task->tk_msg.rpc_cred;
 
 	dprintk("RPC: %4d validating %s cred %p\n",
@@ -382,7 +379,6 @@ rpcauth_unwrap_resp(struct rpc_task *tas
 int
 rpcauth_refreshcred(struct rpc_task *task)
 {
-	struct rpc_auth	*auth = task->tk_auth;
 	struct rpc_cred	*cred = task->tk_msg.rpc_cred;
 
 	dprintk("RPC: %4d refreshing %s cred %p\n",




PS. please keep me on CC 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] remove unused variables in net/sunrpc/auth.c
  2005-01-10 21:50 [PATCH] remove unused variables in net/sunrpc/auth.c Jesper Juhl
@ 2005-01-10 22:16 ` Adrian Bunk
  2005-01-11 16:18   ` Jesper Juhl
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2005-01-10 22:16 UTC (permalink / raw)
  To: Jesper Juhl; +Cc: linux-kernel, linux-net, netdev

On Mon, Jan 10, 2005 at 10:50:34PM +0100, Jesper Juhl wrote:
> 
> We have a few unused variables in net/sunrpc/auth.c:320:
> 
> net/sunrpc/auth.c:320: warning: unused variable `auth'
> net/sunrpc/auth.c:333: warning: unused variable `auth'
> net/sunrpc/auth.c:345: warning: unused variable `auth'
> net/sunrpc/auth.c:385: warning: unused variable `auth'
> 
> As far as I can see, the patch that caused them to become unused is this 
> one (which btw is ~36 months old) :
> http://linux.bkbits.net:8080/linux-2.6/diffs/net/sunrpc/auth.c@1.4?nav=index.html|src/|src/net|src/net/sunrpc|hist/net/sunrpc/auth.c
> 
> Here is a patch to get rid of them (compile tested only).
>...

Doesn't this break with CONFIG_SYSCTL=y?

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] remove unused variables in net/sunrpc/auth.c
  2005-01-10 22:16 ` Adrian Bunk
@ 2005-01-11 16:18   ` Jesper Juhl
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Juhl @ 2005-01-11 16:18 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Jesper Juhl, linux-kernel, linux-net, netdev

On Mon, 10 Jan 2005, Adrian Bunk wrote:

> On Mon, Jan 10, 2005 at 10:50:34PM +0100, Jesper Juhl wrote:
> > 
> > We have a few unused variables in net/sunrpc/auth.c:320:
> > 
> > net/sunrpc/auth.c:320: warning: unused variable `auth'
> > net/sunrpc/auth.c:333: warning: unused variable `auth'
> > net/sunrpc/auth.c:345: warning: unused variable `auth'
> > net/sunrpc/auth.c:385: warning: unused variable `auth'
> > 
> > As far as I can see, the patch that caused them to become unused is this 
> > one (which btw is ~36 months old) :
> > http://linux.bkbits.net:8080/linux-2.6/diffs/net/sunrpc/auth.c@1.4?nav=index.html|src/|src/net|src/net/sunrpc|hist/net/sunrpc/auth.c
> > 
> > Here is a patch to get rid of them (compile tested only).
> >...
> 
> Doesn't this break with CONFIG_SYSCTL=y?
> 
Yes, yes it does. I didn't see the CONFIG_SYSCTL connection and thus 
didn't test that :(   
Please disregard the patch, it's wrong.

-- 
Jesper Juhl



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-11 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-10 21:50 [PATCH] remove unused variables in net/sunrpc/auth.c Jesper Juhl
2005-01-10 22:16 ` Adrian Bunk
2005-01-11 16:18   ` Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).