Whamcloud - gitweb
LU-11861 obdclass: fix build with debug kernel 30/34030/6
authorAlexey Lyashkov <c17817@cray.com>
Tue, 15 Jan 2019 12:24:42 +0000 (15:24 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 6 Feb 2019 06:43:42 +0000 (06:43 +0000)
Move declaration before usage.

Test-Parameters: trivial
Signed-off-by: Alexey Lyashkov <c17817@cray.com>
Change-Id: I9a6c451bb5454b1542f0b06041f6938702e20b36
Reviewed-on: https://review.whamcloud.com/34030
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/llog_cat.c

index e489f23..18a41f9 100644 (file)
 
 #include "llog_internal.h"
 
 
 #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.
  *
 /* 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);
 
 }
 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.
  *
 /** 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.
  *