aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2013-01-09 04:38:34 -0500
committerJ. Bruce Fields <bfields@redhat.com>2013-01-23 18:17:40 -0500
commitbca0ec6511bb96bcb6cb247fd4100a4ea1d1e4f5 (patch)
tree4d3557ab503c037e5d9e834899ed92d0c5f2dc50 /fs/nfsd
parent35525b79786b2ba58ef13822198ce22c497bc7a2 (diff)
nfsd: fix unused "nn" variable warning in free_client()
If CONFIG_LOCKDEP is disabled, then there would be a warning like this: CC [M] fs/nfsd/nfs4state.o fs/nfsd/nfs4state.c: In function ‘free_client’: fs/nfsd/nfs4state.c:1051:19: warning: unused variable ‘nn’ [-Wunused-variable] So, let's add "maybe_unused" tag to this variable. Reported-by: Toralf Förster <toralf.foerster@gmx.de> Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index cc41bf4bcab2..4db46aa387b7 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1048,7 +1048,7 @@ static struct nfs4_client *alloc_client(struct xdr_netobj name)
1048static inline void 1048static inline void
1049free_client(struct nfs4_client *clp) 1049free_client(struct nfs4_client *clp)
1050{ 1050{
1051 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); 1051 struct nfsd_net __maybe_unused *nn = net_generic(clp->net, nfsd_net_id);
1052 1052
1053 lockdep_assert_held(&nn->client_lock); 1053 lockdep_assert_held(&nn->client_lock);
1054 while (!list_empty(&clp->cl_sessions)) { 1054 while (!list_empty(&clp->cl_sessions)) {