Skip to contentSkip to conversation

NFS: Undo changes to idmap.h

PATCH New [email protected] 1 participant 1 message Mar 5, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS: Undo changes to idmap.h

From: Bryan Schumaker <[email protected]>

When compiled without NFS v4 configured these function won't be defined and the compiler will yell.

---
 include/linux/nfs_idmap.h |   11 +++++++++++
 1 file changed, 11 insertions(+)
include/linux/nfs_idmap.h +11 -0
index 717fa50..7eed201 100644
@@ -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 *);
 
Signature · 1 line
1.7.9.2