]> git.hungrycats.org Git - linux/commitdiff
Declare set_change_info() only if CONFIG_NFSD_V3 is enabled. It
authorLinus Torvalds <torvalds@home.transmeta.com>
Fri, 11 Oct 2002 13:21:37 +0000 (06:21 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 11 Oct 2002 13:21:37 +0000 (06:21 -0700)
uses fields that do not exist otherwise.

include/linux/nfsd/xdr4.h

index 5a5542c1a8c04f9d154259c11fb93c990be9bb6a..fb4b105fc6375cd940004dca6c085bd07dd0b371 100644 (file)
@@ -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 *);