From: Boaz Harrosh <bharrosh@panasas.com>
To: Benny Halevy <bhalevy@tonian.com>,
Andy Adamson <andros@netapp.com>,
NFS list <linux-nfs@vger.kernel.org>
Subject: [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set
Date: Mon, 21 May 2012 13:41:24 +0300 [thread overview]
Message-ID: <4FBA1BD4.7090303@panasas.com> (raw)
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;
next reply other threads:[~2012-05-21 10:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 10:41 Boaz Harrosh [this message]
2012-05-21 15:10 ` [PATCH] SQUASHME: pnfsd-lexp: Fix compiler warning when CONFIG_SUNRPC_DEBUG is not set Benny Halevy
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=4FBA1BD4.7090303@panasas.com \
--to=bharrosh@panasas.com \
--cc=andros@netapp.com \
--cc=bhalevy@tonian.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 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.