linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benny Halevy <bhalevy@tonian.com>
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: Andy Adamson <andros@netapp.com>, NFS list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set
Date: Mon, 21 May 2012 18:10:29 +0300	[thread overview]
Message-ID: <4FBA5AE5.8080707@tonian.com> (raw)
In-Reply-To: <4FBA1BD4.7090303@panasas.com>

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

  reply	other threads:[~2012-05-21 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-05-21 15:43   ` Boaz Harrosh

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=4FBA5AE5.8080707@tonian.com \
    --to=bhalevy@tonian.com \
    --cc=andros@netapp.com \
    --cc=bharrosh@panasas.com \
    --cc=linux-nfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).