From 50a2b7ddb2f67a8f05362f097ebe63792dd353b5 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 11 Oct 2002 06:21:37 -0700 Subject: Declare set_change_info() only if CONFIG_NFSD_V3 is enabled. It uses fields that do not exist otherwise. --- include/linux/nfsd/xdr4.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') 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 *); -- cgit v1.2.3