diff options
Diffstat (limited to 'include/linux/nfsd_idmap.h')
-rw-r--r-- | include/linux/nfsd_idmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nfsd_idmap.h b/include/linux/nfsd_idmap.h index 9bb7f30e923b..e82746fcad14 100644 --- a/include/linux/nfsd_idmap.h +++ b/include/linux/nfsd_idmap.h | |||
@@ -43,8 +43,13 @@ | |||
43 | /* XXX from linux/nfs_idmap.h */ | 43 | /* XXX from linux/nfs_idmap.h */ |
44 | #define IDMAP_NAMESZ 128 | 44 | #define IDMAP_NAMESZ 128 |
45 | 45 | ||
46 | #ifdef CONFIG_NFSD_V4 | ||
46 | void nfsd_idmap_init(void); | 47 | void nfsd_idmap_init(void); |
47 | void nfsd_idmap_shutdown(void); | 48 | void nfsd_idmap_shutdown(void); |
49 | #else | ||
50 | static inline void nfsd_idmap_init(void) {}; | ||
51 | static inline void nfsd_idmap_shutdown(void) {}; | ||
52 | #endif | ||
48 | 53 | ||
49 | int nfsd_map_name_to_uid(struct svc_rqst *, const char *, size_t, __u32 *); | 54 | int nfsd_map_name_to_uid(struct svc_rqst *, const char *, size_t, __u32 *); |
50 | int nfsd_map_name_to_gid(struct svc_rqst *, const char *, size_t, __u32 *); | 55 | int nfsd_map_name_to_gid(struct svc_rqst *, const char *, size_t, __u32 *); |