]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
NFS: Undo changes to idmap.h
authorBryan Schumaker <bjschuma@netapp.com>
Mon, 5 Mar 2012 19:58:15 +0000 (14:58 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 5 Mar 2012 20:26:47 +0000 (15:26 -0500)
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>
include/linux/nfs_idmap.h

index 717fa5019e759dc594c28e953ee38a2af99a2999..7eed2012d288926a6317e53ead4eb7880796c7ca 100644 (file)
@@ -69,8 +69,19 @@ struct nfs_server;
 struct nfs_fattr;
 struct nfs4_string;
 
+#ifdef CONFIG_NFS_V4
 int nfs_idmap_init(void);
 void nfs_idmap_quit(void);
+#else
+static inline int nfs_idmap_init(void)
+{
+       return 0;
+}
+
+static inline void nfs_idmap_quit(void)
+{}
+#endif
+
 int nfs_idmap_new(struct nfs_client *);
 void nfs_idmap_delete(struct nfs_client *);