diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-03-05 14:58:15 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-05 15:26:47 -0500 |
commit | 91e56aaedd7ebceacde782a3921fadef4b5d0e1c (patch) | |
tree | bab4aba01720a09f581c48ce3f77fa3c47863594 /include/linux/nfs_idmap.h | |
parent | 8aa0a410af8011d557877e558f9ff17c082c6840 (diff) |
NFS: Undo changes to idmap.h
When compiled without NFS v4 configured these function won't be defined
and the compiler will yell.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_idmap.h')
-rw-r--r-- | include/linux/nfs_idmap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h index 717fa5019e7..7eed2012d28 100644 --- a/include/linux/nfs_idmap.h +++ b/include/linux/nfs_idmap.h | |||
@@ -69,8 +69,19 @@ struct nfs_server; | |||
69 | struct nfs_fattr; | 69 | struct nfs_fattr; |
70 | struct nfs4_string; | 70 | struct nfs4_string; |
71 | 71 | ||
72 | #ifdef CONFIG_NFS_V4 | ||
72 | int nfs_idmap_init(void); | 73 | int nfs_idmap_init(void); |
73 | void nfs_idmap_quit(void); | 74 | void nfs_idmap_quit(void); |
75 | #else | ||
76 | static inline int nfs_idmap_init(void) | ||
77 | { | ||
78 | return 0; | ||
79 | } | ||
80 | |||
81 | static inline void nfs_idmap_quit(void) | ||
82 | {} | ||
83 | #endif | ||
84 | |||
74 | int nfs_idmap_new(struct nfs_client *); | 85 | int nfs_idmap_new(struct nfs_client *); |
75 | void nfs_idmap_delete(struct nfs_client *); | 86 | void nfs_idmap_delete(struct nfs_client *); |
76 | 87 | ||