Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bryan Schumaker and committed by
Trond Myklebust
91e56aae 8aa0a410

+11
+11
include/linux/nfs_idmap.h
··· 69 69 struct nfs_fattr; 70 70 struct nfs4_string; 71 71 72 + #ifdef CONFIG_NFS_V4 72 73 int nfs_idmap_init(void); 73 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 85 int nfs_idmap_new(struct nfs_client *); 75 86 void nfs_idmap_delete(struct nfs_client *); 76 87