diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-20 14:12:46 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-21 09:31:44 -0400 |
commit | 6f00866ddd15724eb20eac4ddf6e2c6c1a6cfcdc (patch) | |
tree | 14c33fa0d8dfe765175c3972d1fd746ef766c150 /fs/nfs/pnfs.h | |
parent | ffa94db6042e6fd014ae0bed8832ac707ef2afe9 (diff) |
NFS: Fix more NFS debug related build warnings
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 07802652f5a3..442ebf68eeec 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -228,7 +228,6 @@ struct nfs4_deviceid_node { | |||
228 | atomic_t ref; | 228 | atomic_t ref; |
229 | }; | 229 | }; |
230 | 230 | ||
231 | void nfs4_print_deviceid(const struct nfs4_deviceid *dev_id); | ||
232 | struct nfs4_deviceid_node *nfs4_find_get_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct nfs4_deviceid *); | 231 | struct nfs4_deviceid_node *nfs4_find_get_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct nfs4_deviceid *); |
233 | void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct nfs4_deviceid *); | 232 | void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct nfs4_deviceid *); |
234 | void nfs4_init_deviceid_node(struct nfs4_deviceid_node *, | 233 | void nfs4_init_deviceid_node(struct nfs4_deviceid_node *, |
@@ -328,6 +327,13 @@ static inline int pnfs_return_layout(struct inode *ino) | |||
328 | return 0; | 327 | return 0; |
329 | } | 328 | } |
330 | 329 | ||
330 | #ifdef NFS_DEBUG | ||
331 | void nfs4_print_deviceid(const struct nfs4_deviceid *dev_id); | ||
332 | #else | ||
333 | static inline void nfs4_print_deviceid(const struct nfs4_deviceid *dev_id) | ||
334 | { | ||
335 | } | ||
336 | #endif /* NFS_DEBUG */ | ||
331 | #else /* CONFIG_NFS_V4_1 */ | 337 | #else /* CONFIG_NFS_V4_1 */ |
332 | 338 | ||
333 | static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) | 339 | static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) |