aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2008-08-12 13:45:28 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-09-29 17:56:58 -0400
commit1b6b2257dc5a88aae375ff44485f8d6c4ee800e4 (patch)
treef501c82b95c8383a9bc12f68337ad79a5697fe56 /fs/nfsd
parente2f282b9f0538e4f63255ffa35bf3b902f5fbde2 (diff)
nfsd: don't declare p in ENCODE_SEQID_OP_HEAD
After using the encode_stateid helper the "p" pointer declared by ENCODE_SEQID_OP_HEAD is warned as unused. In the single site where it is still needed it can be declared separately using the ENCODE_HEAD macro. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index c560af8c69d2..1b81f1656bc2 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1183,7 +1183,6 @@ nfsd4_decode_compound(struct nfsd4_compoundargs *argp)
1183 * Header routine to setup seqid operation replay cache 1183 * Header routine to setup seqid operation replay cache
1184 */ 1184 */
1185#define ENCODE_SEQID_OP_HEAD \ 1185#define ENCODE_SEQID_OP_HEAD \
1186 __be32 *p; \
1187 __be32 *save; \ 1186 __be32 *save; \
1188 \ 1187 \
1189 save = resp->p; 1188 save = resp->p;
@@ -2129,6 +2128,7 @@ nfsd4_encode_link(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_li
2129static __be32 2128static __be32
2130nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) 2129nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open)
2131{ 2130{
2131 ENCODE_HEAD;
2132 ENCODE_SEQID_OP_HEAD; 2132 ENCODE_SEQID_OP_HEAD;
2133 2133
2134 if (nfserr) 2134 if (nfserr)