All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2/trivial: Wrap ocfs2_sysfile_cluster_lock_key within define.
@ 2009-06-18  5:12 Tao Ma
  2009-06-20  6:06 ` Joel Becker
  0 siblings, 1 reply; 2+ messages in thread
From: Tao Ma @ 2009-06-18  5:12 UTC (permalink / raw)
  To: ocfs2-devel

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 <tao.ma@oracle.com>
---
 fs/ocfs2/sysfile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ocfs2/sysfile.c b/fs/ocfs2/sysfile.c
index 6f53f5e..40e5370 100644
--- a/fs/ocfs2/sysfile.c
+++ b/fs/ocfs2/sysfile.c
@@ -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)
 {
-- 
1.6.2.rc2.16.gf474c

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Ocfs2-devel] [PATCH] ocfs2/trivial: Wrap ocfs2_sysfile_cluster_lock_key within define.
  2009-06-18  5:12 [Ocfs2-devel] [PATCH] ocfs2/trivial: Wrap ocfs2_sysfile_cluster_lock_key within define Tao Ma
@ 2009-06-20  6:06 ` Joel Becker
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Becker @ 2009-06-20  6:06 UTC (permalink / raw)
  To: ocfs2-devel

On Thu, Jun 18, 2009 at 01:12:06PM +0800, Tao Ma wrote:
> 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 <tao.ma@oracle.com>

	This is now in the lockdep branch of ocfs2.git.

Joel

-- 

The Graham Corollary:

	The longer a socially-moderated news website exists, the
	probability of an old Paul Graham link appearing at the top
	approaches certainty.

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-20  6:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-18  5:12 [Ocfs2-devel] [PATCH] ocfs2/trivial: Wrap ocfs2_sysfile_cluster_lock_key within define Tao Ma
2009-06-20  6:06 ` Joel Becker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.