Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2002-10-11 06:21:37 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-11 06:21:37 -0700
commit50a2b7ddb2f67a8f05362f097ebe63792dd353b5 (patch)
tree3ab5e3a51d48c03f9b5068e4a61056eb78a64f51
parent08f895c3998348daf924ba233b3584bbba57be2b (diff)
Declare set_change_info() only if CONFIG_NFSD_V3 is enabled. It
uses fields that do not exist otherwise.
-rw-r--r--include/linux/nfsd/xdr4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfsd/xdr4.h b/include/linux/nfsd/xdr4.h
index 5a5542c1a8c0..fb4b105fc637 100644
--- a/include/linux/nfsd/xdr4.h
+++ b/include/linux/nfsd/xdr4.h
@@ -298,6 +298,7 @@ struct nfsd4_compoundres {
#define NFS4_SVC_XDRSIZE sizeof(struct nfsd4_compoundargs)
+#if CONFIG_NFSD_V3
static inline void
set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp)
{
@@ -308,6 +309,7 @@ set_change_info(struct nfsd4_change_info *cinfo, struct svc_fh *fhp)
cinfo->after_size = fhp->fh_post_size;
cinfo->after_ctime = fhp->fh_post_ctime;
}
+#endif
int nfs4svc_encode_voidres(struct svc_rqst *, u32 *, void *);
int nfs4svc_decode_compoundargs(struct svc_rqst *, u32 *, struct nfsd4_compoundargs *);