git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nfsd41: define nfsd4_set_statp as noop for !CONFIG_NFSD_V4
[pandora-kernel.git]
/
include
/
linux
/
nfsd
/
cache.h
diff --git
a/include/linux/nfsd/cache.h
b/include/linux/nfsd/cache.h
index
7b5d784
..
5bccaab
100644
(file)
--- a/
include/linux/nfsd/cache.h
+++ b/
include/linux/nfsd/cache.h
@@
-10,7
+10,6
@@
#ifndef NFSCACHE_H
#define NFSCACHE_H
#ifndef NFSCACHE_H
#define NFSCACHE_H
-#ifdef __KERNEL__
#include <linux/in.h>
#include <linux/uio.h>
#include <linux/in.h>
#include <linux/uio.h>
@@
-77,5
+76,12
@@
void nfsd_reply_cache_shutdown(void);
int nfsd_cache_lookup(struct svc_rqst *, int);
void nfsd_cache_update(struct svc_rqst *, int, __be32 *);
int nfsd_cache_lookup(struct svc_rqst *, int);
void nfsd_cache_update(struct svc_rqst *, int, __be32 *);
-#endif /* __KERNEL__ */
+#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 */
#endif /* NFSCACHE_H */