From: Alexey Lyashkov Date: Tue, 15 Jan 2019 12:24:42 +0000 (+0300) Subject: LU-11861 obdclass: fix build with debug kernel X-Git-Tag: 2.12.52~94 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2dc87bb143e998e25585673b5f0ba7e2f317475e LU-11861 obdclass: fix build with debug kernel Move declaration before usage. Test-Parameters: trivial Signed-off-by: Alexey Lyashkov Change-Id: I9a6c451bb5454b1542f0b06041f6938702e20b36 Reviewed-on: https://review.whamcloud.com/34030 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo --- diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c index e489f23..18a41f9 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. * @@ -436,14 +445,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. *