]> Git Repo - linux.git/commitdiff
ocfs2/trivial: Wrap ocfs2_sysfile_cluster_lock_key within define.
authorTao Ma <[email protected]>
Thu, 18 Jun 2009 05:12:06 +0000 (13:12 +0800)
committerJoel Becker <[email protected]>
Mon, 22 Jun 2009 21:34:29 +0000 (14:34 -0700)
Actually ocfs2_sysfile_cluster_lock_key is only used if we enable
CONFIG_DEBUG_LOCK_ALLOC. Wrap it so that we can avoid a building
warning.
fs/ocfs2/sysfile.c:53: warning: ‘ocfs2_sysfile_cluster_lock_key’
defined but not used

Signed-off-by: Tao Ma <[email protected]>
Signed-off-by: Joel Becker <[email protected]>
fs/ocfs2/sysfile.c

index 6f53f5e7256a6999cc378251507610b29d332d12..40e53702948cdbc2ed92ce1e22f0827f76017417 100644 (file)
@@ -50,7 +50,9 @@ static inline int is_in_system_inode_array(struct ocfs2_super *osb,
                                           int type,
                                           u32 slot);
 
+#ifdef CONFIG_DEBUG_LOCK_ALLOC
 static struct lock_class_key ocfs2_sysfile_cluster_lock_key[NUM_SYSTEM_INODES];
+#endif
 
 static inline int is_global_system_inode(int type)
 {
This page took 0.053018 seconds and 4 git commands to generate.