aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2009-04-06 05:00:49 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-04-06 12:48:20 -0400
commit04826f43d4f0a4d56423eb8abb9f2ec9987df5b5 (patch)
treedf7248108f29ef3c19e3153e2244ac381cf451be
parentf0ad670d7061efad138df19aefe569263c4ea37b (diff)
nfsd41: define nfsd4_set_statp as noop for !CONFIG_NFSD_V4
Fixes following modpost error: ERROR: "nfsd4_set_statp" [fs/nfsd/nfsd.ko] undefined! Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
-rw-r--r--include/linux/nfsd/cache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/nfsd/cache.h b/include/linux/nfsd/cache.h
index a59a2df6d079..5bccaab81056 100644
--- a/include/linux/nfsd/cache.h
+++ b/include/linux/nfsd/cache.h
@@ -75,6 +75,13 @@ int nfsd_reply_cache_init(void);
75void nfsd_reply_cache_shutdown(void); 75void nfsd_reply_cache_shutdown(void);
76int nfsd_cache_lookup(struct svc_rqst *, int); 76int nfsd_cache_lookup(struct svc_rqst *, int);
77void nfsd_cache_update(struct svc_rqst *, int, __be32 *); 77void nfsd_cache_update(struct svc_rqst *, int, __be32 *);
78
79#ifdef CONFIG_NFSD_V4
78void nfsd4_set_statp(struct svc_rqst *rqstp, __be32 *statp); 80void nfsd4_set_statp(struct svc_rqst *rqstp, __be32 *statp);
81#else /* CONFIG_NFSD_V4 */
82static inline void nfsd4_set_statp(struct svc_rqst *rqstp, __be32 *statp)
83{
84}
85#endif /* CONFIG_NFSD_V4 */
79 86
80#endif /* NFSCACHE_H */ 87#endif /* NFSCACHE_H */