Skip to content

Commit

Permalink
nfsd41: define nfsd4_set_statp as noop for !CONFIG_NFSD_V4
Browse files Browse the repository at this point in the history
Fixes following modpost error:
ERROR: "nfsd4_set_statp" [fs/nfsd/nfsd.ko] undefined!

Signed-off-by: Benny Halevy <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
Benny Halevy authored and J. Bruce Fields committed Apr 6, 2009
1 parent f0ad670 commit 04826f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/nfsd/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ int nfsd_reply_cache_init(void);
void nfsd_reply_cache_shutdown(void);
int nfsd_cache_lookup(struct svc_rqst *, int);
void nfsd_cache_update(struct svc_rqst *, int, __be32 *);

#ifdef CONFIG_NFSD_V4
void nfsd4_set_statp(struct svc_rqst *rqstp, __be32 *statp);
#else /* CONFIG_NFSD_V4 */
static inline void nfsd4_set_statp(struct svc_rqst *rqstp, __be32 *statp)
{
}
#endif /* CONFIG_NFSD_V4 */

#endif /* NFSCACHE_H */

0 comments on commit 04826f4

Please sign in to comment.