From bcbee25b076161e993cea3e9762b896cdf289a9d Mon Sep 17 00:00:00 2001 From: Alexey Lyashkov Date: Tue, 15 Jan 2019 15:24:42 +0300 Subject: [PATCH] LU-11861 obdclass: fix build with debug kernel Move declaration before usage. Lustre-change: https://review.whamcloud.com/34030 Lustre-commit: 2dc87bb143e998e25585673b5f0ba7e2f317475e Test-Parameters: trivial Signed-off-by: Alexey Lyashkov Change-Id: I9a6c451bb5454b1542f0b06041f6938702e20b36 Reviewed-by: Andreas Dilger Signed-off-by: Etienne AUJAMES Reviewed-on: https://review.whamcloud.com/41897 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alexey Lyashkov --- lustre/obdclass/llog_cat.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index 91f0290..8116b2f 100644 --- a/lustre/obdclass/llog_cat.c +++ b/lustre/obdclass/llog_cat.c @@ -49,6 +49,15 @@ #include "llog_internal.h" + +/** + * lockdep markers for nested struct llog_handle::lgh_lock locking. + */ +enum { + LLOGH_CAT, + LLOGH_LOG, +}; + /* Create a new log handle and add it to the open list. * This log handle will be closed when all of the records in it are removed. * @@ -459,14 +468,6 @@ int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle) } EXPORT_SYMBOL(llog_cat_close); -/** - * lockdep markers for nested struct llog_handle::lgh_lock locking. - */ -enum { - LLOGH_CAT, - LLOGH_LOG -}; - /** Return the currently active log handle. If the current log handle doesn't * have enough space left for the current record, start a new one. * -- 1.8.3.1