linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set
@ 2012-05-21 10:41 Boaz Harrosh
  2012-05-21 15:10 ` Benny Halevy
  0 siblings, 1 reply; 3+ messages in thread
From: Boaz Harrosh @ 2012-05-21 10:41 UTC (permalink / raw)
  To: Benny Halevy, Andy Adamson, NFS list


Fix "Unused variable" warning if CONFIG_SUNRPC_DEBUG is not set

Signed-off-by: Boaz Harrosh <boazharrosh@gmail.com>
---
git diff --stat -p -M fs/nfsd/nfs4pnfsds.c
 fs/nfsd/nfs4pnfsds.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/nfsd/nfs4pnfsds.c b/fs/nfsd/nfs4pnfsds.c
index 2732f20..ab67523 100644
--- a/fs/nfsd/nfs4pnfsds.c
+++ b/fs/nfsd/nfs4pnfsds.c
@@ -170,10 +170,9 @@ static int stateid_hashval(stateid_t *stidp)
 	hashval = stateid_hashval(stidp);
 	list_for_each_entry(local, &ds_stid_hashtbl[hashval], ds_hash)
 		if (!memcmp(&local->ds_stid.si_opaque, &stidp->si_opaque, sizeof(stidp->si_opaque))) {
-			stateid_t *sid = &local->ds_stid;
 			dprintk("NFSD: %s <-- %p ds_flags %lx " STATEID_FMT "\n",
 				__func__, local, local->ds_flags,
-				STATEID_VAL(sid));
+				STATEID_VAL(&local->ds_stid));
 			return local;
 		}
 	return NULL;

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

* Re: [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set
  2012-05-21 10:41 [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set Boaz Harrosh
@ 2012-05-21 15:10 ` Benny Halevy
  2012-05-21 15:43   ` Boaz Harrosh
  0 siblings, 1 reply; 3+ messages in thread
From: Benny Halevy @ 2012-05-21 15:10 UTC (permalink / raw)
  To: Boaz Harrosh; +Cc: Andy Adamson, NFS list

On 2012-05-21 13:41, Boaz Harrosh wrote:
> 
> Fix "Unused variable" warning if CONFIG_SUNRPC_DEBUG is not set
> 

Merged, thanks!

> Signed-off-by: Boaz Harrosh <boazharrosh@gmail.com>
> ---
> git diff --stat -p -M fs/nfsd/nfs4pnfsds.c
>  fs/nfsd/nfs4pnfsds.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/fs/nfsd/nfs4pnfsds.c b/fs/nfsd/nfs4pnfsds.c
> index 2732f20..ab67523 100644
> --- a/fs/nfsd/nfs4pnfsds.c
> +++ b/fs/nfsd/nfs4pnfsds.c
> @@ -170,10 +170,9 @@ static int stateid_hashval(stateid_t *stidp)
>  	hashval = stateid_hashval(stidp);
>  	list_for_each_entry(local, &ds_stid_hashtbl[hashval], ds_hash)
>  		if (!memcmp(&local->ds_stid.si_opaque, &stidp->si_opaque, sizeof(stidp->si_opaque))) {
> -			stateid_t *sid = &local->ds_stid;
>  			dprintk("NFSD: %s <-- %p ds_flags %lx " STATEID_FMT "\n",
>  				__func__, local, local->ds_flags,
> -				STATEID_VAL(sid));
> +				STATEID_VAL(&local->ds_stid));
>  			return local;
>  		}
>  	return NULL;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set
  2012-05-21 15:10 ` Benny Halevy
@ 2012-05-21 15:43   ` Boaz Harrosh
  0 siblings, 0 replies; 3+ messages in thread
From: Boaz Harrosh @ 2012-05-21 15:43 UTC (permalink / raw)
  To: Benny Halevy; +Cc: Andy Adamson, NFS list

On 05/21/2012 06:10 PM, Benny Halevy wrote:

> On 2012-05-21 13:41, Boaz Harrosh wrote:
>>
>> Fix "Unused variable" warning if CONFIG_SUNRPC_DEBUG is not set
>>
> 
> Merged, thanks!
> 


Not that I'm at the stage where I don't configure CONFIG_SUNRPC_DEBUG=y
It was recently changed and my oldconfig base removed it.

Actually I got lucky, because I would have run without dprints
and would have pulled my hair what's going on with my setup.

I wish it would stay to protect me for a while ;-)

Thanks
Boaz


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

end of thread, other threads:[~2012-05-21 15:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 10:41 [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set Boaz Harrosh
2012-05-21 15:10 ` Benny Halevy
2012-05-21 15:43   ` Boaz Harrosh

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).