Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
[safe/jmp/linux-2.6] / include / linux / nfsd_idmap.h
index 9bb7f30..d4a2ac1 100644 (file)
 /* XXX from linux/nfs_idmap.h */
 #define IDMAP_NAMESZ 128
 
-void nfsd_idmap_init(void);
+#ifdef CONFIG_NFSD_V4
+int nfsd_idmap_init(void);
 void nfsd_idmap_shutdown(void);
+#else
+static inline int nfsd_idmap_init(void)
+{
+       return 0;
+}
+static inline void nfsd_idmap_shutdown(void)
+{
+}
+#endif
 
 int nfsd_map_name_to_uid(struct svc_rqst *, const char *, size_t, __u32 *);
 int nfsd_map_name_to_gid(struct svc_rqst *, const char *, size_t, __u32 *);