Skip to content

Commit

Permalink
ocfs2: fix a GCC warning
Browse files Browse the repository at this point in the history
Fix the following compile warning:

fs/ocfs2/dlmglue.c:99:30: warning: �lockdep_keys� defined but not used [-Wunused-variable]
 static struct lock_class_key lockdep_keys[OCFS2_NUM_LOCK_TYPES];

Link: http://lkml.kernel.org/r/1536938148-32110-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
zhong jiang authored and Greg Kroah-Hartman committed Oct 13, 2018
1 parent bab5c80 commit 1cff514
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ struct ocfs2_unblock_ctl {
};

/* Lockdep class keys */
#ifdef CONFIG_DEBUG_LOCK_ALLOC
static struct lock_class_key lockdep_keys[OCFS2_NUM_LOCK_TYPES];
#endif

static int ocfs2_check_meta_downconvert(struct ocfs2_lock_res *lockres,
int new_level);
Expand Down

0 comments on commit 1cff514

Please sign in to comment.